Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Open "filename:line" paths from the clipboard or copy the caret position to the clipboard.
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Context.sublime-menu
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
Main.sublime-menu
README.md
clipboard_path.py

README.md

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.

Something went wrong with that request. Please try again.