File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
autoload/fern/scheme/file Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ function! fern#scheme#file#mapping#init(disable_default_mappings) abort
1010 nnoremap <buffer> <silent> <Plug> (fern-action-copy) :<C-u> call <SID> call('copy')<CR>
1111 nnoremap <buffer> <silent> <Plug> (fern-action-move) :<C-u> call <SID> call('move')<CR>
1212 nnoremap <buffer> <silent> <Plug> (fern-action-trash) :<C-u> call <SID> call('trash')<CR>
13+ nnoremap <buffer> <silent> <Plug> (fern-action-trash=) :<C-u> call <SID> call_without_guard('trash')<CR>
1314 nnoremap <buffer> <silent> <Plug> (fern-action-remove) :<C-u> call <SID> call('remove')<CR>
15+ nnoremap <buffer> <silent> <Plug> (fern-action-remove=) :<C-u> call <SID> call_without_guard('remove')<CR>
1416
1517 if ! a: disable_default_mappings
1618 nmap <buffer> <nowait> N <Plug> (fern-action-new-file)
Original file line number Diff line number Diff line change @@ -1196,6 +1196,7 @@ The following mappings/actions are only available on file:// scheme.
11961196 The prompt will repeatedly open if multiple nodes has marked.
11971197
11981198*<Plug>(fern-action-trash)*
1199+ *<Plug>(fern-action-trash=)*
11991200 Open a prompt to ask if fern can send the cursor node or marked nodes
12001201 to the system trash-bin. It uses the following implementations to send
12011202 the node(s) into system trash-bin.
@@ -1207,11 +1208,26 @@ The following mappings/actions are only available on file:// scheme.
12071208 https://github.com/b4b4r07/gomi
12081209 Note that the action fails without removing the files/directories if
12091210 no requirement exists on Linux.
1211+ You can use a "=" variant to apply values to the prompt and/or submit
1212+ a value like:
1213+ >
1214+ " Immediately delete
1215+ nmap <buffer>
1216+ \ <Plug>(my-trash)
1217+ \ <Plug>(fern-action-trash=)y<CR>
12101218
12111219*<Plug>(fern-action-remove)*
1220+ *<Plug>(fern-action-remove=)*
12121221 Open a prompt to ask if fern can DELETE the cursor node or marked
12131222 nodes. BE CAREFUL with this action while it DELETE the file/direcoty
12141223 and users cannot restore (like "rm" in terminal.)
1224+ You can use a "=" variant to apply values to the prompt and/or submit
1225+ a value like:
1226+ >
1227+ " Immediately delete
1228+ nmap <buffer>
1229+ \ <Plug>(my-trash)
1230+ \ <Plug>(fern-action-trash=)y<CR>
12151231
12161232*<Plug>(fern-action-cd:root)*
12171233*<Plug>(fern-action-lcd:root)*
You can’t perform that action at this time.
0 commit comments