aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/log
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-08 14:15:03 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-08 14:15:03 +0800
commitf5a47d15d42a3aaaddf9d4daa70e28b5deeca104 (patch)
tree1136f41b959e46b917b04e6319523f805581e191 /bin/log
parenta42ea5a5814113e6952b97f597a78d1061a3f9ea (diff)
Update
Diffstat (limited to 'bin/log')
-rw-r--r--bin/log/shellrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/log/shellrc b/bin/log/shellrc
index b3c95fc..504a129 100644
--- a/bin/log/shellrc
+++ b/bin/log/shellrc
@@ -1,7 +1,12 @@
1# about vimwiki 1# about vimwiki
2alias cdl='cd ~/log' 2alias cdl='cd ~/log'
3alias chw='tig -C ~/log' 3alias chw='tig -C ~/log'
4ww() { entry="${1:-inbox}"; vim ~/log/${entry%%.md}.md; } 4ww() {
5 entry="${1:-inbox}"
6 entry="${entry%.md}"
7 file=$(find ~/log -name "${entry}*" | head -1)
8 $EDITOR $file
9}
5wj() { echo "$@" >>~/log/buffer.md; } 10wj() { echo "$@" >>~/log/buffer.md; }
6wg() { grep -r "$@" --color --exclude-dir={logseq,.git,.obsidian} ~/log; } 11wg() { grep -r "$@" --color --exclude-dir={logseq,.git,.obsidian} ~/log; }
7wi() { cat ~/log/${1%%.md}.md; } 12wi() { cat ~/log/${1%%.md}.md; }