Replies: 3 comments
-
I don't see us adding another command only to have such a small difference in behavior. Like you mentioned you should be able to use a variable in the future. Currently you can use |
Beta Was this translation helpful? Give feedback.
-
This seems like a good use case for flags: |
Beta Was this translation helpful? Give feedback.
-
related: #11616 e.g. for renaming or for moving to a new folder (e.g. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
You can use
:move
command to move the current buffer, but this is relative to Helix's current working directory.Say your current working directory is
~/site/src/
, and you are editing the~/site/src/lib/command.ts
file.You want to rename it to
typed.ts
, you can do it with:move lib/typed.ts
.But it would be nice if we didn't need to specify the current file's directory.
When #11164 is merged, you'll be able to use
mv %{d}/typed.ts
but it would still be nice to have a:rename
command., with a:rn
alias.Beta Was this translation helpful? Give feedback.
All reactions