@@ -12,37 +12,32 @@ export CZ_GUI=0
1212# export CZ_DMENU_FONT="Unifont:normal:pixelsize=14"
1313
1414# Core Functionality
15- # Insert selected cz plugin output into the readline buffer at cursor
16- bind -x '"\C-xx":rleval cz meta -q' # insert field(s)
17- bind -x '"\C-xX":rleval cz meta -p' # insert line
18- bind -x '"\C-xz":rleval cz meta -r' # insert command output
19- bind -x '"\C-xZ":rleval cz meta -s' # insert command string
20- bind -x '"\C-xc":cz meta -r' # just run command
15+ bind -x '"\C-xx":rleval cz meta -q' # insert cz plugin selection at cursor
16+ bind -x '"\C-xX":rleval cz meta -p' # insert cz plugin line at cursor
17+ bind -x '"\C-xz":rleval cz meta -r' # insert cz plugin command output at cursor
18+ bind -x '"\C-xZ":rleval cz meta -s' # insert cz plugin command string at cursor
19+ bind -x '"\C-xc":cz meta -r' # just run cz plugin in command mode
2120
2221# Shell Utilities
23- # Insert text useful in the shell
24- bind -x '"\C-xr":rleval -i cz -q bash history {0}' # insert selected line from bash history matching current word
25- bind -x '"\C-x!":rleval -i cz -q argv {0:}' # insert word selected from current readline buffer
26- bind -x '"\C-xu":rleval -i cz -u unicode character' # insert selected unicode character
27- bind -x '"\C-xU":rleval -i cz -u unicode symbol' # insert selected unicode symbol
28- bind -x '"\C-x,":rleval -w cz -q whence {0}' # replace word with matching command path
22+ bind -x '"\C-xr":rleval -i cz -q bash history {0}' # insert selected line from bash history matching current word at cursor
23+ bind -x '"\C-x!":rleval -i cz -q argv {0:}' # insert word selected from current readline buffer at cursor
24+ bind -x '"\C-xu":rleval -i cz -u unicode character' # insert selected unicode character at cursor
25+ bind -x '"\C-xU":rleval -i cz -u unicode symbol' # insert selected unicode symbol at cursor
26+ bind -x '"\C-x,":rleval -w cz -q whence {0}' # replace word under cursor with matching command path
2927
3028# Directory Navigation
31- # Change directory to selected directory above or below current directory
32- bind -x '"\C-x<":cz -re "cd {0}" ancestor'
33- bind -x '"\C-x>":cz -re "cd {0}" descendant'
29+ bind -x '"\C-x<":cz -re "cd {0}" ancestor' # cd to ancestory directory
30+ bind -x '"\C-x>":cz -re "cd {0}" descendant' # cd to descendant directory
3431
3532# Git
36- # Insert selected paths from git repo in the current directory into the readline buffer
37- bind -x '"\C-xg":rleval cz -q git status' # insert path of selected modified file
38- bind -x '"\C-xG":rleval cz -q git file' # insert path of selected git tracked file
33+ bind -x '"\C-xg":rleval cz -q git status' # insert path of selected modified file at cursor
34+ bind -x '"\C-xG":rleval cz -q git file' # insert path of selected git tracked file at cursor
3935
4036# File Lookup
41- # Replace the word under readline cursor with a selected file
42- bind -x '"\C-xd":rleval -w cz -q find dir {0}' # find dir under directory at cursor
43- bind -x '"\C-xD":rleval -w cz -q find dir . {0}' # find dir matching word at cursor
44- bind -x '"\C-xf":rleval -w cz -q find file {0}' # find file under directory at cursor
45- bind -x '"\C-xF":rleval -w cz -q find file . {0}' # replace word at cursor with find file matching word at cursor
46- bind -x '"\C-xl":rleval -w cz -q locate {0}' # replace word at cursor with name of file from locate database matching it
47- bind -x '"\C-xe":rleval -w cz -q grep {0}' # replace word at cursor with name of selected file matching it
48- bind -x '"\C-xE":rleval -r cz -r grep {0}' # edit the line matching the pattern at cursor
37+ bind -x '"\C-xd":rleval -w cz -q find dir {0}' # find dir under directory at cursor
38+ bind -x '"\C-xD":rleval -w cz -q find dir . {0}' # find dir matching word at cursor
39+ bind -x '"\C-xf":rleval -w cz -q find file {0}' # find file under directory at cursor
40+ bind -x '"\C-xF":rleval -w cz -q find file . {0}' # replace word at cursor with find file matching word at cursor
41+ bind -x '"\C-xl":rleval -w cz -q locate {0}' # replace word at cursor with name of file from locate database matching it
42+ bind -x '"\C-xe":rleval -w cz -q grep {0}' # replace word at cursor with name of selected file matching it
43+ bind -x '"\C-xE":rleval -r cz -r grep {0}' # edit the line matching the pattern at cursor
0 commit comments