-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add defx support #2282
Merged
Merged
Add defx support #2282
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
assigned wsdjeg
Oct 28, 2018
Codecov Report
@@ Coverage Diff @@
## master #2282 +/- ##
==========================================
- Coverage 27.46% 25.53% -1.93%
==========================================
Files 286 277 -9
Lines 20404 13943 -6461
==========================================
- Hits 5604 3561 -2043
+ Misses 14800 10382 -4418 |
Please add |
Please could you add this ( nnoremap <silent><buffer><expr> yM defx#do_action('call', g:defx_config_sid . 'DefxMoveFile')
function! s:DefxMoveFile(_) abort
if !executable('xclip-cutfile') && !s:SYS.isWindows
echohl WarningMsg
echo 'you need to have xclip-cutfile in your PATH'
echohl NONE
return
endif
let candidate = defx#get_candidate()
let filename = candidate['action__path']
if executable('xclip-cutfile')
call s:VCOP.systemlist(['xclip-cutfile', filename])
if v:shell_error
echohl WarningMsg
echo 'failed to move file!'
echohl NONE
else
echo 'Yanked:' . filename
endif
elseif s:SYS.isWindows
let s:copyed_file_path = filename
echo 'Yanked:' . filename
endif
endfunction |
@Double1996 @marcopgordillo please use new issue for feature request. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Prelude
Thank you for working on SpaceVim! :)
Please complete these steps and check these boxes before filing your PR:
Why this change is necessary and useful?
The dark powered file explorer implementation
File tree navigation
Navigation is centered on the
hjkl
keys with the hope of providing a fast navigation experience like in vifm:<F3>
/SPC f t
<Left>
/h
<Down>
/j
<Up>
/k
<Right>
/l
N
y y
y Y
P
.
s v
s g
p
i
v
g x
'
V
Ctrl-r