Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick File Path

Quickly send file paths to the terminal.

Demo

Features

  • Send Active File Path: Send the relative path of the currently active editor file to the terminal
  • Send Selected File Path: Send the relative path of the file selected in Explorer or Source Control to the terminal
  • Send Selected Text: Send the selected text with file path and line number (e.g., src/file.ts:L10-L20) to the terminal

Usage

  1. Open Keyboard Shortcuts (Cmd+K Cmd+S)
  2. Search for "Quick File Path"
  3. Assign your preferred keybindings

Recommended Keybinding Setup

{
  "key": "cmd+;",
  "command": "quickFilePath.sendActiveFilePath",
  "when": "editorFocus && !editorHasSelection"
}
{
  "key": "cmd+;",
  "command": "quickFilePath.sendSelectedText",
  "when": "editorFocus && editorHasSelection"
}
{
  "key": "cmd+;",
  "command": "quickFilePath.sendSelectedFilePath",
  "when": "listFocus && (explorerViewletFocus || focusedView == 'workbench.scm')"
}

Note: sendSelectedFilePath uses the clipboard internally, so your clipboard contents will be overwritten.

About

A VSCode extension to quickly send file paths to the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages