Commit Graph

756 Commits

Author SHA1 Message Date
Dan Kaplun
f63e43379e Doesn't crash if trying to open a nonexistent file 2014-05-04 00:11:43 -05:00
Dan Kaplun
0cdb287765 Removes optimist dependency 2014-05-03 23:59:10 -05:00
Dan Kaplun
84633d1ecc Filename in header is now shown as a relative path 2014-05-03 23:51:59 -05:00
Dan Kaplun
31f3d5d0f1 Improvements to find 2014-05-03 22:34:24 -05:00
Dan Kaplun
f3ea2c2b15 Opens README.md if slap is run for the first time without passing a file 2014-05-03 22:25:11 -05:00
Dan Kaplun
1a7348af3c Adds go to line 2014-05-03 21:38:35 -05:00
Dan Kaplun
4c02cd454a Cleans up prompt 2014-05-03 21:32:48 -05:00
Dan Kaplun
587383f102 Moves blinking logic to _initBlink 2014-05-03 21:09:16 -05:00
Dan Kaplun
1d077680f5 Doesn't attempt to find the empty string 2014-05-03 18:48:08 -05:00
Dan Kaplun
ea810d5e38 Doesn't hide message on mouse move 2014-05-03 18:41:21 -05:00
Dan Kaplun
fc3d1b75d7 Fixes tests 2014-05-03 18:40:16 -05:00
Dan Kaplun
28fc78b871 Adds Field (based on Editor), uses it instead of Textbox for prompt() 2014-05-03 18:39:08 -05:00
Dan Kaplun
d810e0e7b4 Adds unsaved changes prompt 2014-05-03 07:04:42 -05:00
Dan Kaplun
c8bf01e8e0 Uses promises 2014-05-03 06:57:13 -05:00
Dan Kaplun
ccd06b3f33 Let's give that message some whitespace... messages love whitespace 2014-05-03 06:35:17 -05:00
Dan Kaplun
43a274568a Stops old message timers from wiping out new messages 2014-05-03 06:31:19 -05:00
Dan Kaplun
b477ddc4b8 Implements message blinking 2014-05-03 06:26:56 -05:00
Dan Kaplun
935e7d6aab Adds "search wrapped" message 2014-05-03 06:10:04 -05:00
Dan Kaplun
9bfeb1d861 Adds success style and shows "saved to" message 2014-05-03 06:06:16 -05:00
Dan Kaplun
4d376848e3 Fixes find selection bug 2014-05-03 05:58:56 -05:00
Dan Kaplun
453dc53c82 Highlights current line only if focused 2014-05-03 05:56:34 -05:00
Dan Kaplun
57ab6bf96c Disables highlighting with language=false 2014-05-03 05:18:16 -05:00
Dan Kaplun
4c2ed4e370 Uses _.merge in place of extend 2014-05-03 05:02:47 -05:00
Dan Kaplun
220b490772 Version 0.0.6 2014-05-03 03:17:10 -05:00
Dan Kaplun
3db662f49c Fixes saving 2014-05-03 03:16:44 -05:00
Dan Kaplun
ac87b1ee06 Doesn't exit when attempting to save to a directory 2014-05-03 03:12:42 -05:00
Dan Kaplun
8c3a9bfdc9 Version 0.0.5 2014-05-03 03:09:49 -05:00
Dan Kaplun
8a43348295 Normalizes path on save and load 2014-05-03 03:07:32 -05:00
Dan Kaplun
5a7d660fdf Implements saveAs 2014-05-03 02:50:24 -05:00
Dan Kaplun
69f780c334 Don't exit if cannot write to file 2014-05-03 02:47:45 -05:00
Dan Kaplun
0e78ac8069 Fixes save functionality 2014-05-03 02:44:20 -05:00
Dan Kaplun
a5cfa626c4 Implements save (finally) 2014-05-03 02:38:19 -05:00
Dan Kaplun
3d6883618f Adds slap.path and styleName argument to slap.message 2014-05-03 02:26:51 -05:00
Dan Kaplun
a816957c5f Implements readOnly 2014-05-03 02:13:29 -05:00
Dan Kaplun
5302180edf Version 0.0.4 2014-05-03 02:03:15 -05:00
Dan Kaplun
e401a09a6c Renders on startup 2014-05-03 02:02:49 -05:00
Dan Kaplun
a975223ad0 Version 0.0.3 2014-05-03 01:59:47 -05:00
Dan Kaplun
5e12e1e7ca Uses forked highlight.js 2014-05-03 01:59:28 -05:00
Dan Kaplun
7a4f744d0a Undo fixes 2014-05-03 01:45:25 -05:00
Dan Kaplun
e5935bea81 Version 0.0.2 2014-05-03 01:37:58 -05:00
Dan Kaplun
ab33c56805 Renames Program to Slap 2014-05-03 01:37:25 -05:00
Dan Kaplun
fbc27c8062 Program now inherits from blessed.Screen 2014-05-03 01:33:52 -05:00
Dan Kaplun
09d01b8bf6 Unclogs rendering pipeline 2014-05-03 01:27:47 -05:00
Dan Kaplun
7c32d1b73e Increases message duration, adds style to message, and adds "this is the only occurrence" message 2014-05-03 00:52:09 -05:00
Dan Kaplun
a55c7fa373 Removes extraneous showCursor call 2014-05-03 00:41:33 -05:00
Dan Kaplun
a48dfb7dc1 Keypresses disable mouse bugfix 2014-05-03 00:27:10 -05:00
Dan Kaplun
42ce8b4232 Moves ChangeCommand definition closer to _initChangeStack 2014-05-03 00:21:36 -05:00
Dan Kaplun
380d3e4bf4 Factors changeStack creation into _initChangeStack 2014-05-03 00:17:05 -05:00
Dan Kaplun
a17956e503 Uses change, start, end instead of text to store changes 2014-05-03 00:13:56 -05:00
Dan Kaplun
9c8cf6d8dc Organize a bit 2014-05-02 17:44:38 -05:00