open file relative to current buffer #2481
-
is there a way to easily open a file relative to the path of the current buffer? this is motivated by "goto definition" ending up in a dependency/system directory and then wanting to open a file relative to that rather than the current working directory |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There's a PR for it: #1352 |
Beta Was this translation helpful? Give feedback.
-
There's a built-in command to open a file picker in the current buffer's directory, but it's not mapped to anything by default (as of Feb 2024). You can enable it with the following configuration: [keys.normal."space"]
"o" = "file_picker_in_current_buffer_directory" Personally, I prefer to overwrite the Space F shortcut as it's not terribly useful for me: [keys.normal."space"]
"F" = "file_picker_in_current_buffer_directory" |
Beta Was this translation helpful? Give feedback.
There's a PR for it: #1352