Skip to content
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

delete files #208

Closed
winkee01 opened this issue Sep 16, 2020 · 3 comments
Closed

delete files #208

winkee01 opened this issue Sep 16, 2020 · 3 comments
Labels
question Further information is requested

Comments

@winkee01
Copy link

winkee01 commented Sep 16, 2020

I have two enhancement suggestions:

  1. currently, when deleting a file, the cursor will jump to its parent node, would it be better if the cursor just jumps to its neighbor node(file)?

  2. a quicker delete key like dy might be helpful, in some cases we just need to delete useless files faster and more efficiently.

other issues:
when type d to delete a file, I can sense a bit of delay, usually, I should expect an instant pop-up of confirmation, a few milliseconds I have to wait, it this the case in your machine?

thanks

OS: Mac OS X, Catalina
Editor: neovim
Terminal: iTerm2 + fish + tmux

@lambdalisue
Copy link
Owner

lambdalisue commented Sep 16, 2020

  1. Duplicated Move cursor more wisely after removing node(s) #134
  2. Users can define their own mappings

other issues:
when type d to delete a file, I can sense a bit of delay, usually, I should expect an instant pop-up of confirmation, a few milliseconds I have to wait, it this the case in your machine?

No. I'm not sure but :help map-nowait may helps you

@lambdalisue lambdalisue added the question Further information is requested label Sep 16, 2020
@winkee01
Copy link
Author

function! FernInit() abort
  nmap <buffer> n <Plug>(fern-action-new-path)
  nmap <buffer> d <Plug>(fern-action-remove)
  nmap <buffer> m <Plug>(fern-action-move)
endfunction

I used an online version of config copied from somewhere, and its mapping is like above. is this the problem? what's the manual way to do so.

@lambdalisue
Copy link
Owner

It's definitely Vim's feature. Read :help map-nowait or go stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants