- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.3k
 
Closed
Labels
Description
Topic
- Rename the 'Custom command' thing associated with 
:to Execute Shell Command or Shell command. - Bring Custom command placeholders like `{{ .SelectedPath }} to Shell command.
 
Your thoughts
- 
We have two features named Custom command. It's hard to refer clearly to which one when we use the 'custom command' keyword. Like this context.
I propose to use:- Custom command: for custom command defined in config.yml.
 - Shell command: execute the shell command that user inputs.
 
 - 
Another thought, we cannot use placeholders in Shell command. But it is convenient to provide this feature.
- 
Use case 1:
To execute a git command over the current selected file, what I want is:git --update-index --skip-worktree {{ .SelectedPath }}The file is modified and selected in Files tab, I hope I can pass the selected file path to execute arbitrary commands.
 - 
Use case 2:
To change file attribute, add execute permission. Example command:chmod +x {{ .SelectedPath }} 
 -