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

Better​Go​To​File

by Suor ST3 New

Open file paths under cursor in Sublime Text

Details

Installs

  • Total 0
  • Win 0
  • Mac 0
  • Linux 0
May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26
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 0 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 0 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 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

BetterGoToFile

Open file path under cursor in Sublime Text.

If path resolves to a single file in current project, it is opened right away. If several files match, you get a quick panel to choose one.

Supported forms:

path/to/file.py
path/to/file.py:42
"path/to/file.py"
'/absolute/path/to/file.py'

Shortcut

Add a key binding to your user keymap:

[
    {"keys": ["ctrl+enter"], "command": "goto_file"}
]

Use whatever key you prefer. The command is also available from the command palette as “BetterGoToFile: Open File at Cursor”.

If no path is found or nothing matches, the plugin falls back to Sublime's goto_definition command by default. You can change that in BetterGoToFile.sublime-settings:

{
    "fallback_command": "goto_definition",
    "fallback_args": {},
    "excluded_dirs": [".git", "node_modules", "__pycache__", ".venv"]
}

Project files are cached for a few minutes to avoid walking the same folders on every command run.