.
This commit is contained in:
12
.memo/fzf-usage
Normal file
12
.memo/fzf-usage
Normal 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
27
.memo/nvim-usage
Normal 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
|
||||||
2
fish/prev.d/.gitignore
vendored
2
fish/prev.d/.gitignore
vendored
@@ -1,6 +1,6 @@
|
|||||||
*
|
*
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!zoxide.fish
|
|
||||||
!prompt.fish
|
!prompt.fish
|
||||||
!ssh-agent.fish
|
!ssh-agent.fish
|
||||||
!theme.fish
|
!theme.fish
|
||||||
|
!programs.fish
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
if type -q fzf
|
||||||
|
fzf --fish | source
|
||||||
|
end
|
||||||
|
|
||||||
if type -q zoxide
|
if type -q zoxide
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
alias cd=z
|
alias cd=z
|
||||||
Reference in New Issue
Block a user