jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.67k stars 105 forks source link

[Bug]: (un)indenting within select line mode not working #267

Closed KiaraGrouwstra closed 10 months ago

KiaraGrouwstra commented 10 months ago

in normal mode one may use </> to (un)indent a line. it would be nice to be able to use this in batch for multiple lines using select line mode (v), but currently this doesn't work.

jmacdonald commented 10 months ago

Hi there! This definitely should work; those </> keybindings are set in the default keymap. 🤔

KiaraGrouwstra commented 10 months ago

perhaps this should become a bug report then.

what other info might i get?

pbgc commented 10 months ago

@KiaraGrouwstra @jmacdonald

it would be nice to be able to use this in batch for multiple lines using select line mode (v), but currently this doesn't work.

What you want to do works using V (to select whole lines) but not with v (https://amp.rs/docs/usage/#selecting-text)

Edit: as you can see in the default keymap (link above) <> are defined for select_line: and not select:

Edit2: v mode is not select line mode like you say in the title, but select text mode! V is select line mode.

jmacdonald commented 10 months ago

Ah, I didn't catch the lowercase v in your initial description! 😅 I've confirmed that the feature works as expected on nixOS, so @pbgc's helpful advice should settle this.

KiaraGrouwstra commented 10 months ago

ah sorry i missed that - and thanks!