helix icon indicating copy to clipboard operation
helix copied to clipboard

:c instead of :bc

Open aspizu opened this issue 2 years ago • 2 comments

aspizu avatar Jan 16 '23 17:01 aspizu

It would be possible to remap this yourself with https://github.com/helix-editor/helix/issues/4423. For now you can edit the alias in the source if you're building from source: https://github.com/helix-editor/helix/blob/3cf5216dbd1b9c767e6a922f93f1a3b1a2955d02/helix-term/src/commands/typed.rs#L1852

I don't think this is a good default though. :c could be used for some of the other typable commands that start with 'c' like :config-open or :cd or :cquit depending on how much one uses any of these commands.

the-mikedavis avatar Jan 16 '23 20:01 the-mikedavis

What about?: :q closing the current buffer, and exiting helix if there are no buffers open.

aspizu avatar Jan 16 '23 22:01 aspizu

AFAIK it isn't possible to make a command like that with the current set of commands. It seems like a rather niche workflow to me though so I would prefer that something like that is implemented later when there is a way to script commands or create them via plugins

the-mikedavis avatar Jan 17 '23 22:01 the-mikedavis