ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Clipboard Path

by jturcotte ALL

Open "filename:line" paths from the clipboard or copy the caret position to the clipboard.

Details

  • 2013.02.08.11.39.30
  • github.​com
  • github.​com
  • 12 years ago
  • 31 minutes ago
  • 12 years ago

Installs

  • Total 3K
  • Win 2K
  • Mac 623
  • Linux 367
Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimeClipboardPath

Open “filename:line” paths from the clipboard or copy the caret position to the clipboard.

Commands

This plugin contains two commands:

open_clipboard_path

By default mapped to Ctrl+Shift+O (Cmd+Shift+O on Mac) and available from the File menu, this command will try to opened a file path contained in the clipboard.

The clipboard can contain an absolute or relative path. Relative paths will be tried against all parent directories of all opened files and project folders. The path can also have a line number appended after a semicolon; “Path:123” or between parentheses; “Path(123)”.

Examples

../../a/b/c/File.txt
/a/b/c/File.txt:123
File.txt(123)

copy_basename_and_line

This command, available in the context menu, copies the position of the caret to the clipboard using the format “FileName:Line”. It is useful e.g. to set breakpoints in gdb by selecting this command and doing “b [paste]” in the text debugger.