philrunninger / mintree Goto Github PK
View Code? Open in Web Editor NEWA minimalist take on NERDTree
License: MIT License
A minimalist take on NERDTree
License: MIT License
Create, rename, copy, or delete files or folders from the MinTree window. The new commands are:
A
- append a new folder (with trailing slash) or file (without slash).S
- renameD
- delete a folder or file (for potential move elsewhere)Y
- yank a folder/file for copyingP
- put a folder or file, after a prior D
or Y
command.Other considerations and details:
D
will move the folder/file to a temporary location, and remember where that is.Y
will copy the folder/file to a temporary location, and remember where that is.P
will copy from the temporary location into the target location.D
or Y
commands will delete and forget the previous temporary folder/file.tempname()
function to create the temporary location, Vim automatically will delete that temporary folder when exiting.A
ppending or P
utting on a...
Other Tasks:
See https://github.com/Yohannfra/Nvim-Switch-Buffer for inspiration. This is not Vim compatible, AFAIK. Do I want to ensure it is? Probably. I'm thinking this should help remove my janky previous buffer logic.
If I have two files in a directory, .env
and .env.development
, and .env.development
is already open, I cannot open .env
.
Add a cd
command to change the current working directory to the directory under the cursor.
To reproduce this error:
mkdir empty_folder
cd empty_folder
echo "abcde" >> .snafu
vim .snafu
:MinTree
You will see this error message.
Error detected while processing function <SNR>68_MinTree[4]..<SNR>68_MinTreeOpen[8]..<SNR>68_ActivateNode:
line 3:
Error detected while processing function <SNR>68_MinTree[4]..<SNR>68_MinTreeOpen[8]..<SNR>68_ActivateNode[4]..<SNR>68_UpdateOpen[7]..<SNR>68_LocateFile[1]..<SNR>68__locateFile[5]..<SNR>68_FoldLimits:
line 4:
line 8:
Error detected while processing function <SNR>68_MinTree[6]..<SNR>68_UpdateOpen[7]..<SNR>68_LocateFile[1]..<SNR>68__locateFile[5]..<SNR>68_FoldLimits:
line 4:
line 8:
E490: No fold found
Then toggling the display of hidden files also throws similar errors, erroneously edits the originally opened file, and leaves it unmodifiable.
I
Error detected while processing function <SNR>68_ToggleHidden[2]..<SNR>68_Refresh[1]..<SNR>68_FoldLimits:
line 4:
line 8:
Error detected while processing function <SNR>68_ToggleHidden[2]..<SNR>68_Refresh[8]..<SNR>68_UpdateOpen[7]..<SNR>68_LocateFile[1]..<SNR>68__locateFile[5]..<SNR>68_FoldLimits:
line 4:
line 8:
E490: No fold found
vifm uses l
to expand a folder, and h
to collapse a folder. Make this an optional way to use MinTree.
Like the NERDTree F
command, hide/show files in the tree.
Override the /
keystroke to have customized searching behavior.
abc
is typed, the search string is a.*b.*c.*
.<C-N>
and <C-P>
perhaps) to move to next/previous match while still in "enter search string" mode.<C-O>
to open a folder while still in "enter search string" mode.Error detected while processing function mintree#main#SetCWD:
line 5:
E344: Can't find directory "C:\Users\---\mintree\README.md" in cdpath
E472: Command failed
I'm not sure J
, K
, <C-J>
, and <C-K>
are all that useful. I'm thinking about removing them. Then I can use J
and K
to go down/up to the nearest directory, skipping over files. They would essentially be shortcuts for FjF
and FkF
. I don't know; maybe it will be useful.
I also want to add vifm's f
<char>
key. Instead of Vim's normal behavior, this goes to the first line that starts with <char>
.
Make w
work only on files.
Fix wording is some of the help messages: o
, x
, w
.
To see this, :set cole=0
. Then look at column 4. A 1 indicates that the file is open; however, we shouldn't consider unlisted buffers to be open. To make a buffer unlisted, use the :bdelete
command.
This will be a big departure from the NERDTree method. I want to use vifm's style, which is similar to vim's marks:
m{a-zA-Z}
creates a bookmark'{a-zA-Z}
jumps to the mark:marks
displays the currently set marks:delmark {a-zA-Z}
deletes a markThis is still a fresh idea. Not sure yet how differently lowercase marks work from uppercase.
Similar to what's done in nerdtree-buffer-ops, use the w
key to wipeout the buffer corresponding to the currently-selected file in the Mintree buffer.
After pressing the w
key, the tree is refreshed to update the highlighting, but refresh puts the cursor at the parent directory node. How do we keep it on the file being wiped out?
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.