jmacdonald / amp

A complete text editor for your terminal.

Home Page:https://amp.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

KiaraGrouwstra opened this issue · comments

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.

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

perhaps this should become a bug report then.

  • amp version: 0.6.2
  • system: nixos
  • can reproduce without a config

what other info might i get?

commented

@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.

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.

ah sorry i missed that - and thanks!