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

Path Tools

by pjdietz ST2/ST3

A suite of commands for copying or inserting the current file's path in Sublime Text 2 or 3.

Details

Installs

  • Total 8K
  • Win 3K
  • OS X 3K
  • Linux 1K
May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 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
Windows 1 6 5 2 5 2 5 2 3 1 1 3 3 7 7 4 2 5 7 2 2 7 5 2 3 3 5 2 7 2 1 0 3 3 5 8 2 3 1 2 2 4 4 4 4 1
OS X 0 5 0 4 2 1 1 7 3 1 0 3 5 6 9 4 3 1 3 7 2 8 2 2 3 7 6 4 1 4 3 0 6 4 1 4 3 1 0 2 6 10 5 6 1 2
Linux 0 2 0 1 3 2 2 1 0 1 1 3 4 1 1 3 0 2 0 1 2 1 1 1 3 1 3 3 3 4 1 1 1 2 1 4 3 1 1 3 3 0 5 1 1 2

Readme

Source
raw.​githubusercontent.​com

Path Tools

A suite of commands for copying or inserting the current file's path in Sublime Text 2 or 3.

Context Menus

All commands are available from the regular context menu. The copy commands are made available from the tab context menu.

Command Palette

You may also run commands directly from the Command Palette. Open the Command Palette (Ctrl/Super + Shift + P) and enter one of the following:

  • Insert File Path
  • Insert File Directory
  • Insert File Name
  • Insert Path Relative to Project
  • Insert Directory Relative to Project
  • Copy File Path
  • Copy File Directory
  • Copy File Name

Key Bindings

Path Tools no longer supplies any default key bindings. Previous versions provided key bindings that conflicted with built-in Sublime Text commands.

If you wish to add key bindings, you may add them as user overrides by opening Preferences -> Key Bindings - User.

Installation

Sublime Package Control

You can install Path Tools using the excellent Package Control package manager for Sublime Text:

  1. Open “Package Control: Install Package” from the Command Palette (Ctrl/Super + Shift + P).
  2. Select the “Path Tools” option to install Path Tools.

Git Installation

To install manually using Git, clone to your “Packages” directory.

git clone https://github.com/pjdietz/sublime-path-tools.git "Path Tools"