minor changes here and there, working on a zettlekasten implementation.

This commit is contained in:
Solomon Laing 2023-01-27 22:19:32 +10:30
parent 50cbee95d4
commit 37dd285600
4 changed files with 47 additions and 49 deletions

View File

@ -130,15 +130,6 @@ cmd mkfile_and_edit ${{
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 bulkrename $vidir
@ -166,7 +157,7 @@ map t
map tt trash
map tr restore_trash
map tmo $tmux-sessioniser $PWD
map T $tmux-sessioniser $PWD
map m
map md mkdir
@ -188,6 +179,11 @@ map gcs cd ~/.config/shell
map gcz cd ~/.config/zsh
map gcx1 cd ~/.config/x11
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 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 zke zk_edit
map zkf zk_edit_file
# Source Bookmarks
# source "~/.config/lf/shortcutrc"

View File

@ -35,7 +35,8 @@ map("n", "<C-y>", '"+y', opts)
map("n", "<C-p>", '"+p', opts)
-- 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
map("n", "<S-l>", ":bnext<CR>", opts)
@ -48,9 +49,6 @@ map("n", "<C-d>", "<C-d>zz", opts)
-- Easy exit insert mode
map("i", "jk", "<ESC>", opts)
-- Save
map("i", "<C-s>", "<ESC>:w<CR>a", opts)
-- Indenting
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-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" })

View File

@ -41,7 +41,7 @@ alias \
magit="nvim -c MagitOnly" \
ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \
# Alias dotfiles/config related commands
# Alias dotfiles/config related commands
alias \
config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME" \
ccam="config commit -am" \
@ -49,7 +49,7 @@ alias \
cpull="config pull" \
cst="config status" \
# Alias tmux commands for ease of use
# Alias tmux commands for ease of use
alias \
tmn="tmux new" \
tma="tmux-worker" \

View File

@ -87,10 +87,16 @@ lfcd() {
fi
}
# lf
bindkey -s '^o' '^ulfcd\n'
# tmux sessioniser
bindkey -s '^t' '^utms\n'
# zk related things
bindkey -s '^n' '^uzk edit --interactive --sort modified-\n'
if [ -f /etc/hostname ]; then
HOST=$(cat /etc/hostname)
else