aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-04 19:27:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-04 19:27:57 +0000
commitfcca3d3e55da97e0f5298343cb3cc8fef73223cd (patch)
tree97196e44524beea32b53487f31d8ef32e82551aa /terminal.h
parentrender: codespell: accomodate -> accommodate (diff)
parentextract: finish: increase ‘idx’ when pushing new data, for consistency (diff)
Merge branch 'extend-selection-by-word'
Closes #267
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 0774aaa1..a8bd5b0b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -181,6 +181,7 @@ enum mouse_reporting {
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
+enum selection_semantic { SELECTION_SEMANTIC_NONE, SELECTION_SEMANTIC_WORD, SELECTION_SEMANTIC_ROW};
enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT};
enum selection_scroll_direction {SELECTION_SCROLL_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN};
@@ -359,10 +360,17 @@ struct terminal {
struct {
enum selection_kind kind;
+ enum selection_semantic semantic;
enum selection_direction direction;
struct coord start;
struct coord end;
bool ongoing;
+ bool spaces_only; /* SELECTION_SEMANTIC_WORD */
+
+ struct {
+ struct coord start;
+ struct coord end;
+ } pivot;
struct {
int fd;