You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, custom command mappings only allow a fixed command. This is limiting in cases where you might only want to change part of the command, but keep the rest.
Describe the solution you'd like
Python's str.format() function makes it possible for users to use Python format specifiers in custom commands, which will then be replaced by the corresponding argument from the actual command.
Is your feature request related to a problem? Please describe.
Currently, custom command mappings only allow a fixed command. This is limiting in cases where you might only want to change part of the command, but keep the rest.
Describe the solution you'd like
Python's
str.format()
function makes it possible for users to use Python format specifiers in custom commands, which will then be replaced by the corresponding argument from the actual command.Example:
Command mapping:
Actual cmdline:
['code', '/path/to/file.txt']
Resulting command that gets saved:
code -n /path/to/file.txt
Additional context
#60 (comment)
The text was updated successfully, but these errors were encountered: