Context Path Commander"ContextPathCommander" is a VSCode extension that allows users to execute specific commands based on the file or folder path by right-clicking within the Explorer. Through a configuration file, users can customize the names of the commands displayed and the scripts that are executed. 「Context Path Commander」は、VSCodeのエクスプローラー内でファイルやフォルダーを右クリックした際に、パスに基づいて特定のコマンドを実行することができる拡張機能です。 設定ファイルで、表示されるコマンドの名前や実行するスクリプトをカスタマイズできます。 Usage ExampleStep 1: Configure CommandsAdd your custom commands to the Step 2: Right-Click on the Target File or FolderRight-click on the target file or folder either in the File Explorer or in the open editor, and select "Context Path Commander" from the context menu. Step 3: Select Command from QuickPickA QuickPick interface will appear at the top of the screen. From this list, select the command you wish to execute. Step 4: Command ExecutionThe selected command will be executed in the terminal, with the path placeholders ( Extension SettingsList of commands that users can configure to appear in the QuickPick interface when triggered from either the context menu of the Explorer or an open editor. These commands can perform specific operations based on the selected path. Use
Command ExamplesFile-specific commands
Folder-specific commands
Commands that work with both files and folders
Note: Some commands may work differently or produce unexpected results depending on whether they are executed on a file or folder. It's recommended to test your commands with both file and folder targets to ensure they work as expected. Example:
|