Giter VIP home page Giter VIP logo

nerdtree-visual-selection's People

Contributors

atrosekta avatar hungpham3112 avatar jiz4oh avatar philrunninger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nerdtree-visual-selection's Issues

Undefined variable b:NERDTree

First of all, all the functionality seem to work (thank you, great plugin!)
Update: It does not work, see this comment.

One issue though:

  1. NERDTree is not visible
  2. Type :e . to bring up nerd tree (this is maybe what i am doing "wrong" here)
  3. Visually select a bunch of files in the nerd tree buffer and press o (NERDTreeMapActivateNode).

Result:

All files are opened (functionality OK) but This error trace appears:

NERDTree: Opening /Users/san/devops/benthos/LICENSE (1 of 2)...                                                                                                        
Error detected while processing function <SNR>108_ProcessSelection:                                                                                                    
line    6:                                                                                                                                                             
E716: Key not present in Dictionary: path.str() . " (" . (curLine - a:firstline + 1) . " of " . (a:lastline - a:firstline + 1) . ")...")                               
E116: Invalid arguments for function nerdtree#echo                                                                                                                     
Error detected while processing function <SNR>108_ProcessSelection[16]..NERDTreeRender[1]..nerdtree#renderView:                                                        
line    1:                                                                                                                                                             
E121: Undefined variable: b:NERDTree

I don't get that error when using any other opening method except NERDTreeMapActivateNode and i don't get the error when the nerd tree is activated with :NERDTree before doing the above.

Can this issue be resolved?

Bulk rename/move

First off, you're a legend Phil. Thanks for the great work on this library.

Fern.vim has this really cool action where if multiple files are selected and you start a rename action it opens a buffer with each path on a line, then, once saved, it moves each one to the new path from its line.

https://github.com/lambdalisue/fern.vim#renamer-action-aka-exrename

This is a long shot, but do you think something like this would be possible with nerdtree?

[Suggestion] Keep the edit behavior consistent with NERDTree single file move/copy's

Thanks for your nice work on this useful plugin. Just a small suggestion, that the behavior of Esc doesn't' match the expectation of common software users.

Issue

When move/copy using nerdtree-visual-selection, you'll get a prompt for inputting the target location, and

  • the operation will continue(ask you if need to process this file one by one) if you press Enter when editing.
  • the operation won't get abort even I press Esc. U will still be asked whether need to process those files.

While for the original NERDTree single file move/copy:

  • the operation will continue if you press Enter when editing.
  • the operation will be aborted if you press Esc when editing.

Expected behavior:

No more prompt/query if Esc pressed.

Add `copy` and `move` to the list of features

Hey ๐Ÿ‘‹๐Ÿ‘‹๐Ÿ‘‹

It would be good to have also the possibility to move and copy multiple nodes into a new location, that way, we would be able to do most of the important operations that you could do with multiple items (at the moment, you can only open and delete them)

What do you think?

[Feature] Turn `dd` into `d` for delete in visual mode with nerdtree

When using vim in visual line mode, you just need to to enter visual line mode and d to delete things. I don't know why you mapped dd for delete the file instead of d. This cause some bugs with vim-which-key when I set timeoutlen = 0 to make vim-which-key open faster. set timeoutlen = 0 make nerdtree-visual-selection can't delete file.

Add support for confirmation when deleting

When doing a destructive operation (like deleting files/folders), I think it would be good to ask for confirmation, possibly repeating which files/folders would be deleted, or saying the amount of files that would be deleted (something like Would you really like to delete 'path/to/important-stuff.js'? (y/N) or Would you really like to delete 59 files? (y/N)).
That would help to avoid accidentally deleting important stuff.

What do you think?

Hotkey doesn't work

After I open nerdtree with :NERDTree, then select multiple files in nerdtree via Shift+v then dd, it's says:

E21: Cannot make changes, 'modifiable' is off

Conflict with vim-nerdtree-tabs

When opening several files in new tabs, vim produces the following errors for each file:

E127: Cannot redefine function NERDTree_Open: It is in use
E127: Cannot redefine function <SNR>90_ProcessSelection: It is in use

The errors don't prevent the files from being opened correctly, but as they are displayed in the log one by one, they do slow down the process significantly.

I only get these errors when using the plugin vim-nerdtree-tabs. When I remove it, the errors go away.

Config to skip confirmation on certain types of actions?

Great plugin! Thanks for your work!

Is there any way to configure it to skip confirmation by action type? I appreciate the confirmation for deletes and copys, etc, but opening tabs and splits is something I do a lot and would prefer no confirmation.

Is this possible or a feature you'd like to implement?

Thanks,

Ben

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.