@@ -20,7 +20,7 @@ export LESS="-MR+Gg"
20
20
# by PATHs set in "/etc/paths"
21
21
# NOTE: first, make sure to remove this logic from "/etc/zprofile".
22
22
if [ -x /usr/libexec/path_helper ]; then
23
- eval ` /usr/libexec/path_helper -s`
23
+ eval ` /usr/libexec/path_helper -s`
24
24
fi
25
25
26
26
# launch ssh-agent is not running yet
@@ -171,7 +171,6 @@ export NNN_PLUG="$NNN_PLUG_1;$NNN_PLUG_2"
171
171
# default: bzip2, (g)zip, tar. Other formats are supported through 'atool'
172
172
export NNN_ARCHIVE=" \\ .(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
173
173
174
- # TODO: NNN, live preview same to fzf
175
174
# Special shortcut reference to the config file that contains selection
176
175
# Use this to refer selected files when entering shell(!) or command prompt (])
177
176
export NSEL=${XDG_CONFIG_HOME:- $HOME / .config} /nnn/.selection
@@ -192,6 +191,23 @@ export GF_GREP_COLOR='38;5;234;48;5;214'
192
191
# make the "git fuzzy diff" preview 60% wide
193
192
export GF_HORIZONTAL_PREVIEW_PERCENT_CALCULATION=' 60'
194
193
195
- # redefine all mappings since it does not work in uppercase
196
- export GIT_FUZZY_STATUS_ADD_KEY=" alt-w"
194
+ # 'git fuzzy'
195
+ # NOTE: have to redefine all these mappings since it does not work out of the box
196
+ # when shorcut is defined in uppercase, like "Alt-W"
197
+ export GIT_FUZZY_BRANCH_WORKING_COPY_KEY=" ctrl-p"
198
+ export GIT_FUZZY_BRANCH_MERGE_BASE_KEY=" alt-p"
199
+ export GIT_FUZZY_BRANCH_COMMIT_LOG_KEY=" alt-l"
200
+ export GIT_FUZZY_BRANCH_CHECKOUT_FILE_KEY=" alt-f"
201
+ export GIT_FUZZY_BRANCH_CHECKOUT_KEY=" alt-b"
202
+ export GIT_FUZZY_BRANCH_DELETE_BRANCH_KEY=" alt-d"
203
+
204
+ export GIT_FUZZY_LOG_WORKING_COPY_KEY=" ctrl-p"
205
+ export GIT_FUZZY_MERGE_BASE_KEY=" alt-p"
206
+ export GIT_FUZZY_LOG_COMMIT_KEY=" alt-d"
207
+
208
+ export GIT_FUZZY_STATUS_ADD_KEY=" alt-s"
209
+ export GIT_FUZZY_STATUS_EDIT_KEY=" alt-e"
210
+ export GIT_FUZZY_STATUS_COMMIT_KEY=" alt-c"
211
+ export GIT_FUZZY_STATUS_RESET_KEY=" alt-r"
212
+ export GIT_FUZZY_STATUS_DISCARD_KEY=" alt-u"
197
213
0 commit comments