m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Improve word motions: ALT-B, ALT-F, ALT-D, ALT-BS (#112)

This commit is contained in:
Junegunn Choi
2014-12-24 01:30:45 +09:00
parent 00190677d4
commit ec040d82dd
2 changed files with 29 additions and 12 deletions

View File

@@ -822,6 +822,21 @@ class TestFZF < MiniTest::Unit::TestCase
tty << ctrl(:e) << " = " << ctrl(:y)
tty << "\r"
end
# Word-movements
assert_fzf_output %w[--print-query], "", "ello!_orld!~ foo=?" do |tty|
tty << "hello_world==baby?"
tty << alt(:b) << ctrl(:d)
tty << alt(:b) << ctrl(:d)
tty << alt(:b) << ctrl(:d)
tty << alt(:f) << '!'
tty << alt(:f) << '!'
tty << alt(:d) << '~'
tty << " foo=bar foo=bar"
tty << ctrl(:w)
tty << alt(127.chr)
tty << "\r"
end
end
def alt chr