Commit Graph

643 Commits

Author SHA1 Message Date
Dan Kaplun
0e5be04455 Adds undo support 2014-04-28 16:36:40 -05:00
Dan Kaplun
da66af51f2 Renames 'change' event to 'text', adds load param to it, and adds new 'change' event corresponding to actual change 2014-04-28 16:34:07 -05:00
Dan Kaplun
c24ba97c18 Fixes editing selections 2014-04-28 06:21:24 -05:00
Dan Kaplun
b8d8ce0584 Changes name to slap 2014-04-28 03:48:47 -05:00
Dan Kaplun
529aae544b Fixes EPIPE if xclip not found 2014-04-28 03:43:46 -05:00
Dan Kaplun
101df3243c Adds escape keybinding for quitting 2014-04-28 02:48:48 -05:00
Dan Kaplun
f6e6e1c65d Fixes _markupIndex bug 2014-04-28 02:24:34 -05:00
Dan Kaplun
ccbced64ec Cleans up coordinate handling 2014-04-27 23:08:07 -05:00
Dan Kaplun
b7eaa5ca5c Fixes preferredCursorX bug with Home/End by automatically setting it 2014-04-27 22:26:52 -05:00
Dan Kaplun
4bc8d13b7f Improves left/right keyboard cursor movement 2014-04-27 21:25:44 -05:00
Dan Kaplun
926a4791f4 Adds stripLineEndings param to Editor.line 2014-04-27 21:09:11 -05:00
Dan Kaplun
fb3952958c Tab support 2014-04-27 21:03:28 -05:00
Dan Kaplun
800cdb463a Rename ._realIndex to ._markupIndex 2014-04-27 01:55:03 -05:00
Dan Kaplun
fc9d45afdf Removes console.error 2014-04-27 01:11:03 -05:00
Dan Kaplun
d265e7d31f Uses this.data for preferredCursorX 2014-04-27 00:37:10 -05:00
Dan Kaplun
efffd2272e Implements Ctrl+A for select all 2014-04-26 22:31:14 -05:00
Dan Kaplun
5ef77ab2f1 Fixes support for some characters 2014-04-26 22:29:11 -05:00
Dan Kaplun
f32bdbbafe Implements insertMode 2014-04-26 22:22:14 -05:00
Dan Kaplun
f9edfe3fb1 Fixes 'lines' event to pass lines obj and adds 'change' event with text 2014-04-26 22:06:14 -05:00
Dan Kaplun
f5b9714aca Caches this.data.maxWidth 2014-04-26 22:02:15 -05:00
Dan Kaplun
51d5a88984 Stores all data in this.data 2014-04-26 21:57:30 -05:00
Dan Kaplun
7d4dbd42d5 Blah 2014-04-26 21:05:54 -05:00
Dan Kaplun
b5d96a7672 Fixes bug with selection 2014-04-26 20:57:48 -05:00
Dan Kaplun
13edc35bdf Adds bin command 2014-04-26 12:07:26 -05:00
Dan Kaplun
8f4d79061a Implements paste 2014-04-26 11:29:19 -05:00
Dan Kaplun
4f119c7e2a Uses blessed _updateCursor hook 2014-04-26 11:23:56 -05:00
Dan Kaplun
0b99dc2372 Fix for selectStyle 2014-04-26 11:14:21 -05:00
Dan Kaplun
d847685937 Rearrange lib/editor.js 2014-04-26 11:02:26 -05:00
Dan Kaplun
07916fc16c Editor now editable 2014-04-26 10:54:39 -05:00
Dan Kaplun
d743958932 Bug fixes 2014-04-26 04:30:52 -05:00
Dan Kaplun
8d3e4304b6 Makes selectStyle more flexible 2014-04-26 04:08:07 -05:00
Dan Kaplun
5fef6fc6bc Updates to newer version of blessed 2014-04-26 03:48:39 -05:00
Dan Kaplun
d3afc2b48a Better movement with selections 2014-04-26 03:41:19 -05:00
Dan Kaplun
abe5044bcf Emits change event on delete/backspace 2014-04-26 03:35:10 -05:00
Dan Kaplun
ee973a81fb Fixes support for moving by word
* Adds lib/word.js (shamelessly stolen from dominictarr/hipster)
2014-04-26 03:16:16 -05:00
Dan Kaplun
d5ea42ce54 Cleanup 2014-04-25 19:42:09 -05:00
Dan Kaplun
bbac650b51 Adds support for initializing with new buffer instead of file 2014-04-25 18:34:13 -05:00
Dan Kaplun
990bff59ad Implements backspace and delete 2014-04-25 18:13:57 -05:00
Dan Kaplun
e6dc7dc005 Implements Ctrl+X cut support 2014-04-25 17:15:21 -05:00
Dan Kaplun
c37f58b358 Adds Ctrl+C copy support 2014-04-25 16:10:28 -05:00
Dan Kaplun
22f71513da Uses higher-level blessed widgets 2014-04-25 14:58:18 -05:00
Dan Kaplun
21f967a5e2 Populate repository 2014-04-21 13:20:48 -05:00
Dan Kaplun
de718604ca Initial commit 2014-04-20 20:39:14 -07:00