From 4707fed2a21f4836b0eba28135040c3a456c9da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 16 Nov 2016 22:39:28 +0100 Subject: sam: use default shell command for <, >, | and ! when applicaple If the shell command is omitted, the last shell command (of any type) is substituted. The most recently used shell command is stored in a new register currently named `!`. --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index d1c346e..5b61022 100644 --- a/main.c +++ b/main.c @@ -1265,6 +1265,8 @@ static const char *key2register(Vis *vis, const char *keys, enum VisRegister *re *reg = VIS_REG_SEARCH; else if (keys[0] == ':') *reg = VIS_REG_COMMAND; + else if (keys[0] == '!') + *reg = VIS_REG_SHELL; return keys+1; } -- cgit v1.2.3