diff options
author | Thomas Buckley-Houston | 2022-05-11 14:05:49 +0000 |
---|---|---|
committer | Thomas Buckley-Houston | 2022-05-11 14:05:49 +0000 |
commit | e3f89438582c12b4d058dd7752c294ad6bb33fac (patch) | |
tree | 92bfeb57e3185b38b5d76f684cdf8b4f7f676e3e /spec | |
parent | d758c159ea6a7ab600bfed3a18413348674cc2f9 (diff) |
Default to xterm-mode selection
This allows snippet plugins to do their magic tabbed selection of
positions to fill in a snippet. For example when you want to complete
an `if~`, snippet plugins populate the buffer at that cursor position
with a skeleton of an `if` statement and select the parts that you want
to customise yourself. This is only possible if the default selection
mode is xterm. So in this commit we carefully manage using mswin-style
selection when the user initiates it with SHIFT keys etc.
The only downside is that I haven't found a way to detect when mouse
selection starts in order to move it away from xterm selection to mswin
sselection.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/novim_mode_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/novim_mode_spec.rb b/spec/novim_mode_spec.rb index 1d0bc99..c784772 100644 --- a/spec/novim_mode_spec.rb +++ b/spec/novim_mode_spec.rb @@ -56,7 +56,8 @@ end describe 'Selecting' do specify 'select all and replace' do initial <<-EOF - select me + select me more, just to make sure + even a hard line EOF type '<C-a>gone' @@ -203,7 +204,7 @@ describe 'Wrapped text' do type '!' final <<-EOF - line1 !line3 line4 + line1 !line4 EOF end @@ -216,7 +217,7 @@ describe 'Wrapped text' do type '!' final <<-EOF - line1 !line3 line4 + !line3 line4 EOF end |