Skip to content

Commit

Permalink
sam: execute X and Y commands only once not for every selection
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Dec 30, 2016
1 parent c2e8a3d commit fc656c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sam.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ static const CommandDef cmds[] = {
CMD_CMD|CMD_REGEX|CMD_ADDRESS_ALL_1CURSOR, "p", cmd_extract
}, {
"X", "Run command on files whose name matches",
CMD_CMD|CMD_REGEX|CMD_REGEX_DEFAULT|CMD_ADDRESS_NONE, NULL, cmd_files
CMD_CMD|CMD_REGEX|CMD_REGEX_DEFAULT|CMD_ADDRESS_NONE|CMD_ONCE, NULL, cmd_files
}, {
"Y", "As `X` but select unmatched files",
CMD_CMD|CMD_REGEX|CMD_ADDRESS_NONE, NULL, cmd_files
CMD_CMD|CMD_REGEX|CMD_ADDRESS_NONE|CMD_ONCE, NULL, cmd_files
}, {
">", "Send range to stdin of command",
CMD_SHELL|CMD_ADDRESS_LINE, NULL, cmd_pipeout
Expand Down

0 comments on commit fc656c3

Please sign in to comment.