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

Goto​Row​Col

by bstidham ALL

Sublime Text 2 - Places the cursor at the specified row and column

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

sublimetext2-GotoRowCol

Places the cursor at the specified row and column

Usage

  • otherwise, use the window command ctrl + shift + p
    • and type GotoRowCol
    • press ENTER
  • an input box will appear at the bottom of the sublime text window with two initial values populated 1 1.
  • The first value represents the row, the second value represents the column. they are 1 based
  • enter your desired coordinates (e.g. 26 32 for row 26 col 32)
    • you can also enter a row by itself without the column. this will be interpreted as “go to row n col 1”
    • example 26 results in (row 26, col 1)
  • press ENTER

Settings

create file Packages/GotoRowCol/GotoRowCol.sublime-settings with the following settings

  • gtrc_prompt_default (default: “1 1”) - Controls the default prompt text

Behavior

once you've entered coordinates, the cursor will be placed at the requestd position and the viewport will scrow the area into viewable range

Gotchas

  • a row value entered that is greater than the number of rows in the view will scroll the cursor to the last line
  • a col value entered that is greater than the length of text in the row will place the cursor at the last position of that line
  • a row or a col value entered that is less than one will cause an exception and the cursor will remain where it is

Revision History

Rev 00 * developer bstidham (Bill Stidham) * date 01/22/2014 * notes
* initial creation. created in response to this StackOverflow qestion

Rev 01 * developer bstidham (Bill Stidham) * date 01/24/2014 * notes https://github.com/bstidham/sublimetext2-GotoRowCol/issues/1 * Parenthesized print for compatibility: * print without parens is only supported in sublime text 2 (python 2). sublime text 3 (python 3) requires that print be parenthesized. * Added file Default.sublime-keymap * replaces ctrl + g “goto row” functionality with GotoRowCol functionality

Rev 02 * developer bstidham (Bill Stidham) * date 01/28/2014 * notes in response to https://github.com/bstidham/sublimetext2-GotoRowCol/issues/2 * added file GotoRowCol.sublime.settings * added setting to GotoRowCol.sublime.settings: “gtrc_prompt_default”: “1 1” * if this setting is not found, a default value of “1 1” is hard coded * modified GotoRowCol.py PromptGotoRowColCommand.gotoRowCol() to check the number of integers supplied * if 1 then it uses the value as the row number and navigates to the first column * if 2 then it goes to row col accordingly * commented out the ctrl + g hotkey in Default.sublime-keymap * will add instructions to the README for enabling this (by simply uncommenting it) * added README.txt and messages.json conaining the USAGE, Settings, and Replacing "goto row" hotkey sections from README.mg

Rev 03 * developer bstidham (Bill Stidham) * date 10/24/2014 * notes - deleted default.sublime-keymap - deleted gotorowcol.sublime-settings - initialized correct versioning to 1.0