Skip to content

Copy filepath of current file with number of selected line(s) in Sublime Text editor

Notifications You must be signed in to change notification settings

NickHatBoecker/CopyFilepathWithLineNumbers

Repository files navigation

Sublime Text - Copy Filepath With Line Numbers

SublimeBadge SublimeBadge SublimeBadge SublimeBadge

Copy filepath of current file with number of selected line(s)

Tested on

  • Windows
  • Linux
  • MacOS

Tested with

  • Sublime Text 3

Usage

Select one or more line(s), right-click and choose "Copy Filepath With Line Numbers" to copy filepath. Your filepath will be copied to clipboard in the following form:

/home/readme.md:3
/home/readme.md:3-10

Select one or more line(s), right-click and choose "Copy Reference" to copy relative filepath with lines. Your filepath will be copied to clipboard in the following form:

subfolder/readme.md:3
subfolder/readme.md:3-10

License

All of Sublime Terminal is licensed under the GPL2 license.

Copyright (c) 2014 Nick Böcker (email : [email protected])

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Suport

You like this plugin? Please consider buying me a ko-fi: https://ko-fi.com/nickhatboecker

About

Copy filepath of current file with number of selected line(s) in Sublime Text editor

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages