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

Ensure goto is relative to the root path #163

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

Conversation

kaste
Copy link

@kaste kaste commented Oct 5, 2024

Dired views have a root (on self.path) and then possibly a goto path which is some file below the root.

Ensure the constructor DiredCommand sets a relative goto path, otherwise all folders up to the file system root will be watched. (!)

While navigating, goto was always relative to the view's root already, so only DiredCommand needs to be changed.

See also the doc for DiredRefreshCommand.expand_goto which clearly assumes relative paths for self.goto.

Dired views have a root (on `self.path`) and then possibly a `goto`
path which is some file below the root.

Ensure the constructor `DiredCommand` sets a relative `goto` path,
otherwise all folders up to the file system root will be watched.

While navigating, `goto` was always relative to the view's root already,
so only `DiredCommand` needs to be changed.

See also the doc for `DiredRefreshCommand.expand_goto` which clearly
assumes relative paths for `self.goto`.
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.

1 participant