minor changes here and there, working on a zettlekasten implementation.
This commit is contained in:
parent
50cbee95d4
commit
37dd285600
@ -130,15 +130,6 @@ cmd mkfile_and_edit ${{
|
|||||||
eval $EDITOR $ans
|
eval $EDITOR $ans
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd zk_edit ${{
|
|
||||||
eval zk edit --interactive --sort modified-
|
|
||||||
}}
|
|
||||||
|
|
||||||
cmd zk_edit_file ${{
|
|
||||||
name=$(echo "$f" | sed 's/\..*//' | sed 's/.*\///')
|
|
||||||
eval zk edit -i -m "$name"
|
|
||||||
}}
|
|
||||||
|
|
||||||
cmd setbg "$1"
|
cmd setbg "$1"
|
||||||
cmd bulkrename $vidir
|
cmd bulkrename $vidir
|
||||||
|
|
||||||
@ -166,7 +157,7 @@ map t
|
|||||||
map tt trash
|
map tt trash
|
||||||
map tr restore_trash
|
map tr restore_trash
|
||||||
|
|
||||||
map tmo $tmux-sessioniser $PWD
|
map T $tmux-sessioniser $PWD
|
||||||
|
|
||||||
map m
|
map m
|
||||||
map md mkdir
|
map md mkdir
|
||||||
@ -188,6 +179,11 @@ map gcs cd ~/.config/shell
|
|||||||
map gcz cd ~/.config/zsh
|
map gcz cd ~/.config/zsh
|
||||||
map gcx1 cd ~/.config/x11
|
map gcx1 cd ~/.config/x11
|
||||||
map gw cd ~/work
|
map gw cd ~/work
|
||||||
|
map gNN cd ~/notes/zk/
|
||||||
|
map gNi cd ~/notes/zk/inbox/
|
||||||
|
map gNw cd ~/notes/zk/work/
|
||||||
|
map gNn cd ~/notes/zk/notes/
|
||||||
|
map gNj cd ~/notes/zk/journal/
|
||||||
|
|
||||||
map A rename # at the very end
|
map A rename # at the very end
|
||||||
map c push A<c-u> # new rename
|
map c push A<c-u> # new rename
|
||||||
@ -205,8 +201,5 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1
|
|||||||
|
|
||||||
map Y $printf "%s" "$fx" | xclip -selection clipboard
|
map Y $printf "%s" "$fx" | xclip -selection clipboard
|
||||||
|
|
||||||
map zke zk_edit
|
|
||||||
map zkf zk_edit_file
|
|
||||||
|
|
||||||
# Source Bookmarks
|
# Source Bookmarks
|
||||||
# source "~/.config/lf/shortcutrc"
|
# source "~/.config/lf/shortcutrc"
|
||||||
|
|||||||
@ -35,7 +35,8 @@ map("n", "<C-y>", '"+y', opts)
|
|||||||
map("n", "<C-p>", '"+p', opts)
|
map("n", "<C-p>", '"+p', opts)
|
||||||
|
|
||||||
-- Save
|
-- Save
|
||||||
map("n", "<C-s>", ":w<CR>", opts)
|
map("n", "<C-s>", "<ESC>:w<CR>", opts)
|
||||||
|
map("i", "<C-s>", "<ESC>:w<CR>", opts)
|
||||||
|
|
||||||
-- Switch between buffers
|
-- Switch between buffers
|
||||||
map("n", "<S-l>", ":bnext<CR>", opts)
|
map("n", "<S-l>", ":bnext<CR>", opts)
|
||||||
@ -48,9 +49,6 @@ map("n", "<C-d>", "<C-d>zz", opts)
|
|||||||
-- Easy exit insert mode
|
-- Easy exit insert mode
|
||||||
map("i", "jk", "<ESC>", opts)
|
map("i", "jk", "<ESC>", opts)
|
||||||
|
|
||||||
-- Save
|
|
||||||
map("i", "<C-s>", "<ESC>:w<CR>a", opts)
|
|
||||||
|
|
||||||
-- Indenting
|
-- Indenting
|
||||||
map("v", "<", "<gv", opts)
|
map("v", "<", "<gv", opts)
|
||||||
map("v", ">", ">gv", opts)
|
map("v", ">", ">gv", opts)
|
||||||
@ -59,4 +57,5 @@ map("v", ">", ">gv", opts)
|
|||||||
map("v", "<C-j>", ":m .+1<CR>==<ESC>V", opts)
|
map("v", "<C-j>", ":m .+1<CR>==<ESC>V", opts)
|
||||||
map("v", "<C-k>", ":m .-2<CR>==<ESC>V", opts)
|
map("v", "<C-k>", ":m .-2<CR>==<ESC>V", opts)
|
||||||
|
|
||||||
|
-- Don't have a terminal implemented yet but when I do...
|
||||||
map("t", "<esc><esc>", "<c-\\><c-n>", { desc = "Enter Normal Mode" })
|
map("t", "<esc><esc>", "<c-\\><c-n>", { desc = "Enter Normal Mode" })
|
||||||
|
|||||||
@ -87,10 +87,16 @@ lfcd() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# lf
|
||||||
bindkey -s '^o' '^ulfcd\n'
|
bindkey -s '^o' '^ulfcd\n'
|
||||||
|
|
||||||
|
# tmux sessioniser
|
||||||
bindkey -s '^t' '^utms\n'
|
bindkey -s '^t' '^utms\n'
|
||||||
|
|
||||||
|
# zk related things
|
||||||
bindkey -s '^n' '^uzk edit --interactive --sort modified-\n'
|
bindkey -s '^n' '^uzk edit --interactive --sort modified-\n'
|
||||||
|
|
||||||
|
|
||||||
if [ -f /etc/hostname ]; then
|
if [ -f /etc/hostname ]; then
|
||||||
HOST=$(cat /etc/hostname)
|
HOST=$(cat /etc/hostname)
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user