comparison .zfun/zsh-autosuggestions/spec/strategies/match_prev_cmd_spec.rb @ 467:e1ce8897030d

zsh: import df6f6f9ff41 of zsh-autosuggestions
author Augie Fackler <raf@durin42.com>
date Mon, 03 Dec 2018 22:37:29 -0500
parents
children
comparison
equal deleted inserted replaced
466:f248cf012d9a 467:e1ce8897030d
1 require 'strategies/special_characters_helper'
2
3 describe 'the match_prev_cmd strategy' do
4 let(:options) { ['ZSH_AUTOSUGGEST_STRATEGY=match_prev_cmd'] }
5
6 it 'suggests the last matching history entry after the previous command' do
7 with_history(
8 'echo what',
9 'ls foo',
10 'echo what',
11 'ls bar',
12 'ls baz',
13 'echo what'
14 ) do
15 session.send_string('ls')
16 wait_for { session.content }.to eq('ls bar')
17 end
18 end
19
20 include_examples 'special characters'
21 end