Skip to content
Discussion options

You must be logged in to vote

The current file picker cannot use an unmatched query as a new filename. It enumerates existing regular files and then fuzzy-filters that list (source), so the query is not treated as a path.

The built-in create-or-open workflow is:

:open path/to/file.rs

or the short form:

:o path/to/file.rs

If the path exists, Helix opens it. If it does not, Helix creates an empty buffer associated with that path (implementation). The file is not created on disk until :write, so a typo can still be abandoned safely. :open also has filename completion.

For a completely unnamed buffer, use :new, edit it, then :write path/to/file.rs. If the parent directories do not exist, :write! creates the necessary di…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by unsecretised
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants