Nev

Finders

Finders allow you to use fuzzy search through all kinds of things.

Some finders also show previews. By default <TAB> switches input focus between the finders search bar and the preview editor.

While a finder is open the following keybinding contexts are pushed:

When the preview is focused the following contexts are pushed instead:

Default keybindings:

The finder API is currently not exposed to plugins yet, but will be in the future, so plugins will be able to create custom finders to fuzzy search/find anything.

choose-file

Custom context: popup.selector.file

Search for a file in all workspace folders.

choose-open

Custom context: popup.selector.open

Search for a file in open files.

choose-git-active-files

Custom context: popup.selector.git

Shows changed/added/deleted/untracked git files with a diff preview. It takes one bool argument all:

The entries are prefixed with a two character code (e.g. .M). The first character character is the staged status, the second one is the unstaged status. The following characters exist:

Once you stage for example a modified file with the status .M, there will be two entries for that file, one with M. which represents the staged version and one with .. which represents the unstaged file. As soon as you add more changes to that file .. will become .M to show that it contains new changes. If you don’t intend to add more changes you can ignore it.

Custom commands:

The following GIF shows an example of using this command after making some modifications to a file.

alt

explore-files <path>

Custom context: popup.selector.file-explorer

Open a file explorer in the selected directory. The path is a path in the virtual file system.

Examples:

Custom commands:

The default confirm behaviour is to enter folders and open files. The preview shows the file content for files and the list of sub files/folders for folders.

alt

explore-workspace

Custom context: popup.selector.file-explorer

Open a file explorer for the primary workspace folder. Same usage as explore-files

explore-user-config

Custom context: popup.selector.file-explorer

Explore config files in the user directory. Same usage as explore-files

explore-app-config

Custom context: popup.selector.file-explorer

Explore config files that are installed with the editor. Same usage as explore-files

explore-workspace-config

Custom context: popup.selector.file-explorer

Explore config files in the workspace primary workspace folder. Same usage as explore-files

explore-help

Custom context: popup.selector.file-explorer

Open a file explorer for the builtin docs (what you’re reading right now).

browse-keybinds

This command opens a finder which allows you to search through the list of all keybindings by command or key combination. The columns are:

alt

To search for a key combination simply prefix the search with |. This isn’t strictly necessary but will improve search results. alt

browse-settings

This command opens a finder which allows you to search through and change all settings.

Boolean settings can be toggled <C-t>. Other settings can be changed by changing the value in the preview and saving.

Use C-h and C-f to move to the parent/child store. The search bar shows which store is currently shown.

Use C-g to toggle between showing the merged settings up to (and including) the current store, or only the settings in the current store. The search bar shows whether the merged or raw settings are shown.

Use C-c to clear the value of a setting (e.g. if you overrode a setting in the runtime store and you want to revert it back to the default).

Gif showing how to use the settings browser

Here is an example of using the settings browser to look into different setting stores and switching between the merged and raw values: Gif showing using the settings browser to see different setting stores