mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-15 06:31:13 -03:00
Rename abbreviation cursor "sentinel" to "marker"
Also default the marker to '%'. So you may write:
abbr -a L --position anywhere --set-cursor "% | less"
or set an explicit marker:
abbr -a L --position anywhere --set-cursor=! "! | less"
This commit is contained in:
@@ -143,7 +143,14 @@ expect_prompt(r"6 : @abc@ ")
|
||||
# Test cursor positioning.
|
||||
sendline(r"""abbr --erase (abbr --list) """)
|
||||
expect_prompt()
|
||||
sendline(r"""abbr LLL --position anywhere --set-cursor !HERE! '!HERE! | less'""")
|
||||
sendline(r"""abbr LLL --position anywhere --set-cursor 'abc%ghi'""")
|
||||
expect_prompt()
|
||||
send(r"""echo LLL def?""")
|
||||
expect_str(r"<echo abcdefghi >")
|
||||
|
||||
sendline(r"""abbr --erase (abbr --list) """)
|
||||
expect_prompt()
|
||||
sendline(r"""abbr LLL --position anywhere --set-cursor=!HERE! '!HERE! | less'""")
|
||||
expect_prompt()
|
||||
send(r"""echo LLL derp?""")
|
||||
expect_str(r"echo derp | less ")
|
||||
expect_str(r"<echo derp | less >")
|
||||
|
||||
Reference in New Issue
Block a user