philrunninger / nerdtree-visual-selection Goto Github PK
View Code? Open in Web Editor NEWDefines commands that will work on files inside a Visual selection
License: MIT License
Defines commands that will work on files inside a Visual selection
License: MIT License
First of all, all the functionality seem to work (thank you, great plugin!)
Update: It does not work, see this comment.
One issue though:
:e .
to bring up nerd tree (this is maybe what i am doing "wrong" here)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?
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?
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.
When move/copy using nerdtree-visual-selection
, you'll get a prompt for inputting the target location, and
Enter
when editing.Esc
. U will still be asked whether need to process those files.While for the original NERDTree single file move/copy:
Enter
when editing.Esc
when editing.No more prompt/query if Esc
pressed.
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?
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.
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?
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
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.
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
I'm wondering for a similar feature like Netrw's mf
or hold ctrl+mouseclicks in any other file managers. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.