-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We provide the following new keybindings while in a picker: * `C-e` - Change picker root to one directory in, based on selection * `C-a` - Change picker root to one directory out These can be especially useful when combined with the command `file_picker_in_current_buffer_directory` when navigating library files. That is, with this change the following flow is enabled: 1. Perform a `goto_defition` on a symbol defined in an external library. 2. Perform `file_picker_in_current_buffer_directory`, opening a picker in the external library. 3. Browse the external library with `C-e` and `C-a`, which is not possible without this change. To accomplish this, we need access to a `FilePickerConfig` not just when building the picker, but also later, so we add an associated `Item::Config` type, which is simply `()` for everything except `PathBuf`. To make it easier to follow what is going on when navigating the picker, we set the status bar to the picker's root directory on change.
- Loading branch information
Showing
11 changed files
with
160 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.