Hoboneer / sxhkd-parser

Parser library for sxhkd configs
GNU General Public License v3.0
7 stars 0 forks source link

hkfind: Allow command for `-cmd` predicate to take multiple command texts as input #6

Open Hoboneer opened 2 years ago

Hoboneer commented 2 years ago

Syntax: "-cmd" ... "+" (like -exec for find).

In this case, the hotkey replacement string should not be expanded (or it should be disallowed) in the command because it's inconvenient for the called program:

  1. The hotkey name and the command filename arguments would have to be differentiated somehow
  2. Each replacement string pair of a hotkey and its command would have to be matched somehow

Both of these are unlikely to be possible without special shell code, so a shell must be used. If the command cared, the passed filenames for the command texts should have a basename that is the same as the hotkey anyway.