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 9K
  • Win 4K
  • OS X 4K
  • Linux 2K
Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10
Windows 1 1 3 5 3 1 3 3 3 8 7 2 6 1 7 6 6 4 0 5 3 8 1 0 2 5 3 4 4 1 5 5 2 2 6 4 6 8 2 1 2 6 3 4 11 4
OS X 1 3 9 6 1 0 3 3 4 2 2 3 1 6 5 3 4 2 0 1 1 5 5 3 2 0 3 1 7 6 3 4 1 4 2 2 3 7 4 0 1 3 6 4 1 6
Linux 0 3 2 2 0 1 0 2 5 3 0 0 1 0 2 1 0 0 2 1 1 1 2 1 0 2 1 3 3 2 1 1 1 2 1 1 1 3 3 1 1 3 3 6 0 3

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"