Rewrite paste -s/pP

This commit is contained in:
Jan Verbeek 2016-08-18 19:05:35 +02:00
parent d7110069bb
commit b6c96855c8
2 changed files with 2 additions and 0 deletions

View File

@ -1712,6 +1712,7 @@ CHANGED_KEY_COMMANDS = [
(re.compile(r'^yank-selected'), r'yank selection'),
(re.compile(r'^paste$'), r'open -- {clipboard}'),
(re.compile(r'^paste -s$'), r'open -- {primary}'),
(re.compile(r'^paste -([twb])$'), r'open -\1 -- {clipboard}'),
(re.compile(r'^paste -([twb])s$'), r'open -\1 -- {primary}'),
(re.compile(r'^paste -s([twb])$'), r'open -\1 -- {primary}'),

View File

@ -356,6 +356,7 @@ class TestKeyConfigParser:
('yank -ps', 'yank pretty-url -s'),
('paste', 'open -- {clipboard}'),
('paste -s', 'open -- {primary}'),
('paste -t', 'open -t -- {clipboard}'),
('paste -ws', 'open -w -- {primary}'),