Comments (8)
@tricktux i was agreeing with your suggestion, trying to provide @ms-jpq some background about how I (and I think you also) think it could work better.
from chadtree.
sorry im not quite sure what you mean, as far as i know vim does not allow multiple cwds,
CHADTree basically just changes root whenever vim changes its own cwd, which i think is logical,
can you please explain more, what do you propose that I need to add?
from chadtree.
Sorry for the late response. I've recorded to screen cast below, trying to illustrate the issue, the first one shows nerdtree behavior, the second shows chadtree behavior. Hopefully this makes things clearer.
Again the issue is that in a split screen with buffer with different root directories, chadtree opens from both buffers in the same directory.
from chadtree.
Sorry, I still don't know what exactly you want, would adding in the above feature fix it for you?
from chadtree.
each window can have its own cwd. see :h lcd
. Basically when you switch to a window (IMHO) the tree should adjust to the window-local cwd. It kind of does this, but then when you jump back to the tree, it goes back to the global cwd. it's a weird behavior. It becomes unusable when you use (as I do) vim-rooter with let g:rooter_cd_cmd = 'lcd'
from chadtree.
@jdelkins Thanks for the comments. But I still don't understand why wouldnt this be the behavior. If I have a split, there should be an option that when I toggle chadtree
it uses lcd
. Then if I go to another split that goes to a completely different tree (but still same window), and I toggle again, it should again honor lcd
. I don't mean to be rude, this your project @ms-jpq, if you feel that is just something that doesn't make sense, feel free to close the issue. Great plugin once again!
from chadtree.
nono you are not rude at all, i had no idea lcd
was a thing in the first place.
I am coming around to add this, kind of slow because I am feeling ill the past few days due to an infection after surgery
from chadtree.
Sorry to hear that @ms-jpq! Safe recovery! What better way than hacking away right?! 😉
from chadtree.
Related Issues (20)
- Hide statusline for Chadtree
- Error when opening markdown files
- Error while installing
- How to set bufferline integrated with chadtree
- Can we get some sort of way to *close* CHADtree?
- Is there any way to set the background of the chadtree's split?
- NERDTree-like ability to open parent directory
- Correct handling of symlinks?
- attempt to index field "api|g" (a nil value) error.
- Exception when closing the window using q
- trash-cli error when sending file to trash
- CHADtree "Failed to start server: no such file or directory" Error on opening vim HOT 1
- Error: Invalid Window id: 1113 when renaming current editing buffer
- Feature Request: add indent line
- Feature Request: allow `CHADopen` accept a dir parameter and start under that folder (not always current dir)
- Missing features HOT 1
- DirEntry subscriptable
- Bold claims in the readme
- Question: How do I get a terminal like this showcase? HOT 2
- Breaks ability to run "nvim ." HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chadtree.