This commit is contained in:
2025-06-24 23:55:51 +02:00
parent 565f67efc3
commit 5517c99370
4 changed files with 46 additions and 3 deletions

12
.memo/fzf-usage Normal file
View File

@@ -0,0 +1,12 @@
# copy result to clipboard
fzf | {clipboard manager} # e.g. wl-copy / win32yank.exe -i
# do not sort results
fzf +s
# preview results in a preview window
fzf --preview 'cat {}'
fzf --preview 'bat --color=always {}' # for better syntax highlighting
# select multiple items with tab
fzf -m

27
.memo/nvim-usage Normal file
View File

@@ -0,0 +1,27 @@
u v undo
C-r v redo
o v open new line below & insert mode
O v open new line above & insert mode
S-h v move to left buffer
S-l v move to right buffer
C-Enter i cancel auto-completion & move to next line
Num j/k v move by num lines
Num G v move to line num
w v move to start of next word
W v move to start next word, can contain punctuation
e v move to end of current word
E v move to end of current word, can contain punctuation
b v move to start of previous word
B v move to start of previous word, can contain punctuation
ge v move to end of previous word
gE v move to end of previous word, can contain punctuation
0 v move to start of line
$ v move to end of line
<>+... v indent

View File

@@ -1,6 +1,6 @@
*
!.gitignore
!zoxide.fish
!prompt.fish
!ssh-agent.fish
!theme.fish
!theme.fish
!programs.fish

View File

@@ -1,4 +1,8 @@
if type -q fzf
fzf --fish | source
end
if type -q zoxide
zoxide init fish | source
alias cd=z
end
end