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

Andy​Edits

by agibsonsw ST2

Jump between edited lines - optional gutter icon

Details

  • 2013.05.24.12.03.57
  • github.​com
  • github.​com
  • 5 years ago
  • 39 minutes ago
  • 5 years ago

Installs

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

AndyEdits

Jump between edited regions - optional gutter icon THERE IS CURRENTLY A RENDERING ISSUE WITH WINDOWS

Can jump to next or previous edited-region or use a quick-panel which shows the edited text and line number. (If the edited text is just whitespace then the panel will display the full line's text.)

A shortcut can toggle outlining of the edited regions. An optional icon can appear in the gutter. You could use your own icon if you prefer! icon_scope determines the colour of the icon and outlining: “class” works well for me. icon_current is the scope for the current edit-region.

You can remove the edit history for a region using another shortcut, via a quick panel (although you cannot remove the most recent edit). If you highlight some text you can create/add it as an edit-region.

You can list, and jump to, edits across all open files.

Details for edited regions will persist if you close ST, but not if you close the file/view. This is the default persistence behaviour for ST.

My suggestions for your Key Bindings (User) are: { “keys”: [“ctrl+alt+d”], “command”: “delete_edit” }, { “keys”: [“ctrl+alt+h”], “command”: “toggle_edits” }, { “keys”: [“ctrl+alt+j”], “command”: “quick_edits” }, { “keys”: [“ctrl+alt+k”], “command”: “prev_edit_line” }, { “keys”: [“ctrl+alt+l”], “command”: “next_edit_line” }, { “keys”: [“ctrl+alt+m”], “command”: “list_all_edits” }, { “keys”: [“ctrl+alt+c”], “command”: “create_edit” }

CURRENT LIMITATIONS: Mulitple Undo, Redo can disturb the edit-history: use Create and/or Delete edit-region to correct this. This is a consequence of the ST-API behaviour.

Multi-select will only remember the first selection area.

It doesn't include automatically inserted (matched) brackets or quotes within the current edit-region, unless editing starts on a new line or at the end of an existing line. Therefore, the edit-region may be split into several edits, and/or the region may end before it should. Selecting the area and using Ctrl-Alt-C to Create a new (single) edit-region will correct this. This can be done at any time and allows you to explicity determine the start and end points for the edit-region.

ST-API ISSUE: An issue when using add_regions() with Windows, and relating to colour themes, may arise. The gutter icon may not display and the scrollbar and ruler may be poorly rendered. Switching to a default theme and back to your chosen theme should resolve this. You may also need to close and re-start ST.