Git Product home page Git Product logo

Comments (8)

jdelkins avatar jdelkins commented on May 14, 2024 1

@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.

ms-jpq avatar ms-jpq commented on May 14, 2024

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.

tricktux avatar tricktux commented on May 14, 2024

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.

ms-jpq avatar ms-jpq commented on May 14, 2024

#77

Sorry, I still don't know what exactly you want, would adding in the above feature fix it for you?

from chadtree.

jdelkins avatar jdelkins commented on May 14, 2024

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.

tricktux avatar tricktux commented on May 14, 2024

@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.

ms-jpq avatar ms-jpq commented on May 14, 2024

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.

tricktux avatar tricktux commented on May 14, 2024

Sorry to hear that @ms-jpq! Safe recovery! What better way than hacking away right?! 😉

from chadtree.

Related Issues (20)

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.