From cf041e18f46d95de44ae61dac4785fea68a6a21b Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Wed, 11 May 2022 12:01:35 -0300 Subject: Allow indentation to be repeated --- spec/novim_mode_spec.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'spec/novim_mode_spec.rb') diff --git a/spec/novim_mode_spec.rb b/spec/novim_mode_spec.rb index c784772..d513d13 100644 --- a/spec/novim_mode_spec.rb +++ b/spec/novim_mode_spec.rb @@ -111,6 +111,31 @@ describe 'Selecting' do EOF end + specify 'ALT+] indents' do + initial <<-EOF + a line of text + EOF + + type '' + type '' + type '' + + final_with_indents "\t\ta line of text\n" + end + + specify 'Shift-Tab or ALT+[ indents' do + initial <<-EOF + a line of text + EOF + + type '' + type '' + type '' + type '' + + final_with_indents "\ta line of text\n" + end + specify 'CTRL+D selects the word under the cursor' do initial <<-EOF a line of text -- cgit v1.2.3-70-g09d2