view · edit · history · print

Sublime Text

See also JEdit for some requirements.
Another potential alternative https://notepad-plus-plus.org/.

Compared to others Sublime just seems to work and be all logical.

UPDATE: sublime development has been stalling in 2014 due to lack of dev resources but will continue... at the same time other "clones" are popping-up like: Atom, Lime Text -- see link.

Must have packages

Some favorite packages

Additional packages

More interesting GIT usage (for windows)

Add dictionaries

Add Next & Find All
===================
To add the next occurrence of the current word to the selection, use Ctrl+D.
(if you go too far, use Undo Selection Ctrl+U).
(Individual occurrences can be skipped via Ctrl+K,Ctrl+D).
To add all occurrences of the current word to the selection, use Find All: Alt+F3. 

TIP: visually identify a string multi-occurrence
================================================
double-click or select a word/string
ctrl+f
alt+F3

vertical selection
==================
Ctrl + Alt + Up
Ctrl + Alt + Down
Right Mouse Button + Shift
OR: Middle Mouse Button 
Add to selection: Ctrl
Subtract from selection: Alt 

Filter Lines
============
Edit > Line > Filter With Regex: [ctrl]+K [ctrl]+R
Edit > Line > Filter With String: [ctrl]+K [ctrl]+S

Splitting the Selection into Lines
==================================
Select a block of lines, and then split it into many selections, one per line, using Ctrl+Shift+L.

Bookmark multiple lines based on regex
======================================
find: ^[a-z|A-Z].+\(.*\)$
[Find all]
Goto  > bookmarks > toggle !!! limit is 12 bookmarks unless you use the sublime bookmarks plugin (but then you will have to toggle them individually with ctrl-F2)

PS: not everything needs bookmarks. [ctrl]+[R] will try to detect and display @functions automatically.

Move lines ip / down (like in org-mode)
=======================================
CTRL+SHIFT+UP/DOWN
PS: folding also works when you indent

Split screen for same file
==========================
File > New view into File
View > layout > rows:2

Must have key bindings for user
===============================
[
  { "keys": ["ctrl+shift+c"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
  { "keys": ["ctrl+shift+g"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
  { "keys": ["f5"], "command": "revert" }
]

Minimal user settings
=====================
{
	"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
	"dictionary": "Packages/Language - English/en_US.dic",
	"font_size": 16,
	"hot_exit": false,
	"ignored_packages":
	[
		"Vintage"
	],
	"remember_open_files": false,
	"rulers":
	[
		80
	],
	"tab_size": 2,
	"translate_tabs_to_spaces": true
}

working with CSV files using "Advanced CSV"
===========================================
* https://packagecontrol.io/packages/Advanced%20CSV
1 set delimiter
2 Justify columns

formula eval is possible with python evaluate but quite confusing and not advised
rowID(row0,col0)       ;num(col1) ;note(col2) ;(col3)
row1                   ;2         ;           ;      
row2                   ;12        ;1          ;      
row3                   ;12        ;26         ;      
row4                   ;1         ;           ;      
row5                   ;1         ;           ;      
row6                   ;1         ;           ;      
row7                   ;1         ;+4=30      ;      
row8(=row9-1)TOTAL     ;30.0      ;27.0       ;      
row9                   ;[-1,1:3]=m[1:row,col].sum()

all coordinates are from:until (not including last)
<wheretoplacesums> = [row9-1(r8),c1<:c3>] = 1:3 (not including 3)
=m
[fromrow:torow(=9-1=1:8,not including 8),"col"(=location, c1 & c2 : until c3)]

Why not Atom?

  • difficulty with large text files !!!
  • slow startup !!
  • High memory use

Alternative (2019)?

admin · attr · attach · edit · history · print
Page last modified on April 29, 2019, at 01:05 AM