Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fallback_buffer_dir option #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tastytea
Copy link

This adds an option to change the root directory to the buffer directory, if the file is outside of a project.

I often edit files outside of projects while my cwd is somewhere else. Telescope and nvim-tree can be convinced to open the buffer's directory without changing this plugin, but for :edit, :write and running shell commands in the same directory there is no alternative.

Change root directory to buffer directory if file is outside a project
@musjj
Copy link

musjj commented Sep 7, 2022

Looks like this is the fourth(?) PR for this kind of feature now:

I guess it's up to @ahmedkhalf to decide on which one to merge

@tastytea
Copy link
Author

tastytea commented Sep 7, 2022

Ah sorry, i only saw #56, which would add the current dir to the list of projects, if i'm not mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants