config: add ‘select-extend-character-wise’ bind action

This forces the (new) selection mode to be character-wise when
extending a word- or line-wise selection.

Default key binding is ctrl+RMB.
This commit is contained in:
Daniel Eklöf 2021-01-06 11:11:46 +01:00
parent 2e46811953
commit 767bd4f1db
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 65 additions and 18 deletions

View file

@ -17,8 +17,9 @@ void selection_finalize(
struct seat *seat, struct terminal *term, uint32_t serial);
void selection_dirty_cells(struct terminal *term);
void selection_cancel(struct terminal *term);
void selection_extend( struct seat *seat, struct terminal *term,
int col, int row, uint32_t serial);
void selection_extend(
struct seat *seat, struct terminal *term,
int col, int row, enum selection_kind kind);
bool selection_on_rows(const struct terminal *term, int start, int end);