Code Monkey home page Code Monkey logo

Comments (6)

qvacua avatar qvacua commented on August 25, 2024

By pwd you mean the parent directory of open file? Currently, we do the following:

  • New File ---> current workspace is ~
  • Open files (of a window) ---> current workspace is the common parent directory of the open files

Thus, if you have opened files in /Users/XYZ/Project/Awesome, then only that directory is indexed. Is this what you mean or do you mean something else?

from vimr.

acdesouza avatar acdesouza commented on August 25, 2024

Almost that.

What I did:

  1. Open VimR;
  2. NERDTree;
  3. On, NERDTree window: B, to see Bookmarks;
  4. Select a Bookmark, Enter on it;
  5. :pwd - shows Bookmark path(/Users/XYZ/Project/Awesome);
  6. Cmd + Shift + o

It indexes from /Users/XYZ, instead of /Users/XYZ/Project/Awesome.

from vimr.

qvacua avatar qvacua commented on August 25, 2024

I'll try to implement the following, assuming #3 (open in new tab) is already implemented:

  1. new window opens: ~
  2. open files using Open in New Tab: the common parent directory
  3. when you issue :cd XYZ or the working directory is set to XYZ in Vim by for instance a script like NERDTree: XYZ

from vimr.

acdesouza avatar acdesouza commented on August 25, 2024

Looks great!

How can I help?

from vimr.

qvacua avatar qvacua commented on August 25, 2024

1 and 2 are already there. As for the 3rd point, if you've got ObjC + Cocoa experience, it should be quite easy. Fork VimR and I'd suggest to do the following: MMVimController of MacVim (-Framework) has -vimState which is an NSDictionary with a key @"pwd". However, when vimState is set, no delegate method is called. Probably the best way would be to add a delegate method for that and implement it in VRMainWindowController to set the workingDirectory property of VRWorkspace.

Please prefix your commits with the number of this issue, ie #15 such that we have a link between the issue and its associated commits.

from vimr.

qvacua avatar qvacua commented on August 25, 2024

consumes too much cpu time somehow

from vimr.

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.