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