Commit Graph

367 Commits

Author SHA1 Message Date
Dan Kaplun
679fb740a7 refactor(pane): explicit parent now required 2015-06-12 00:13:46 -04:00
Dan Kaplun
a531524e06 refactor(logger): remove references to global logger 2015-06-11 23:58:52 -04:00
Dan Kaplun
b7e28cdc46 refactor(deps): remove unused deps 2015-06-11 22:12:50 -04:00
Dan Kaplun
d55e84a260 refactor(binding): move util.getBinding -> BaseWidget#resolveBinding 2015-06-11 21:46:26 -04:00
Dan Kaplun
cc8a9bba53 fix(misc): various fixes 2015-06-11 09:20:39 -04:00
Dan Kaplun
48c1f19b27 refactor(editor-widget): move tests 2015-06-11 09:20:39 -04:00
Dan Kaplun
5689b90bb7 fix(refactor): update deps 2015-06-11 09:20:39 -04:00
Dan Kaplun
f2d4e8d4ea refactor(highlight): move highlight client/server into editor-widget 2015-06-11 09:20:12 -04:00
Dan Kaplun
de811c0d15 refactor(base): move files into own repos
move lib/util, lib/textUtil, lib/markup into slap-util
move lib/ui/Editor, lib/ui/Field, lib/word into editor-widget
move lib/ui/BaseElement into base-widget
2015-06-11 09:20:12 -04:00
Dan Kaplun
f29374c924 fix(open): opening nonexistent files works again 2015-06-02 22:41:46 -04:00
Dan Kaplun
4cabe6b6c4 fix(logger): don’t exit on error 2015-06-02 22:28:28 -04:00
Dan Kaplun
986b08177c feat(deps): Unpin text-buffer@^6.1.3 💪 2015-06-02 22:05:29 -04:00
Dan Kaplun
7d1b4638bb Improves mouse handling
Closes #159
2015-05-12 19:27:04 -04:00
Dan Kaplun
034015f246 Revert corking code, as that breaks 0.10 2015-05-04 09:26:58 -04:00
Dan Kaplun
f2673b0cea Fixes logging for bindings performed on focused elements' parents 2015-05-03 09:52:34 -04:00
Dan Kaplun
a30747517f Ensures plugins are loaded beforehand 2015-05-03 09:40:11 -04:00
Dan Kaplun
d1ca73ac28 Adds -v,--version command line flag 2015-05-03 09:26:37 -04:00
Dan Kaplun
e9af4301bd Reorder/inline imports in lib/cli.js for faster loading 2015-05-03 09:23:05 -04:00
Dan Kaplun
a00bba0840 Improves debugging 2015-04-29 23:18:05 -04:00
Dan Kaplun
8f78f298da Remove renderThrottle 2015-04-29 22:47:39 -04:00
Dan Kaplun
183864d5f0 Refactor header
Use native blink rather than Header#_blink (uglier but faster)
2015-04-29 22:47:39 -04:00
Dan Kaplun
42990f5e90 Get save path from textBuf instead of passed path
Closes #152
2015-04-27 03:55:46 -04:00
Dan Kaplun
398af67d89 Improves performance significantly by only calling _updateContent on the trailing edge of the throttle 2015-04-16 00:10:18 -04:00
Dan Kaplun
3fa49bfdb4 Adds fullUnicode option to slap.ini 2015-04-15 23:00:58 -04:00
Dan Kaplun
f868de2ea7 Updates to blessed 0.1.0 2015-04-15 22:47:35 -04:00
Dan Kaplun
469bc0833f Reimplements plugins using node-clap 2015-04-15 22:26:58 -04:00
Dan Kaplun
2b49f26fb1 Fix boogs 2015-03-30 22:51:25 -04:00
Dan Kaplun
62270c7ea2 Fixes EACCES on save 2015-03-27 21:47:54 -04:00
Dan Kaplun
69e2432239 Fix same issue again 2015-03-19 22:14:30 -04:00
Dan Kaplun
1d843e8581 Fixes first run default-config.ini bug 2015-03-19 22:12:23 -04:00
Dan Kaplun
bcc88d7919 README.md readonly on first run 2015-03-19 00:15:01 -04:00
Dan Kaplun
5fa3bbd99f Copies a default config to ~/.slap/config on first run rather than just creating it 2015-03-19 00:10:08 -04:00
Dan Kaplun
973959b056 Fixes logfile truncation 2015-03-18 23:44:21 -04:00
Dan Kaplun
6305036aa5 Fixes #137 2015-03-17 20:34:18 -04:00
Dan Kaplun
27fd1c1b2a Promisifies Slap.prototype.quit 2015-03-03 20:14:58 -05:00
Dan Kaplun
e7f495d1a7 Fixes Editor mouse handling for changed blessed API 2015-03-01 19:02:51 -05:00
Dan Kaplun
97b9d4511d Fixes mouse logging 2015-03-01 17:38:08 -05:00
Dan Kaplun
ed9bf9cf56 Fixes EISDIR 2015-03-01 17:07:39 -05:00
Dan Kaplun
c72f8cc8bf Fixes EACCES 2015-03-01 17:00:06 -05:00
Dan Kaplun
1812c75e95 Improves UI test suite 2015-03-01 15:01:15 -05:00
Dan Kaplun
ac7c0eb61c Using upstream blessed; upgrades to 0.0.49 2015-03-01 12:00:26 -05:00
Dan Kaplun
0e396d7bc5 Removes util.nextTick; replaces instances with Promise.delay(0) 2015-02-28 16:02:05 -05:00
Dan Kaplun
1a10b028a7 Adds skeleton for UI tests 2015-02-22 18:38:05 -05:00
Dan Kaplun
bddae4fd07 Bugfix: non-empty buffers for yet-nonexistent files will ask to save 2015-02-18 01:45:19 -05:00
Dan Kaplun
ff9d0aaacf Long stack traces only when debugging 2015-02-18 00:44:51 -05:00
Dan Kaplun
afd57c9a60 Further optimizations to lib/markup.js 2015-02-18 00:31:58 -05:00
Dan Kaplun
147b7abd67 Removes dep on chardet, improves loading speed 2015-02-16 17:09:08 -05:00
Dan Kaplun
d5120d6b74 Adds C-b duplicateLine 2015-02-16 16:14:20 -05:00
Dan Kaplun
5e3c207f95 Significant optimization
Creates a new Markup class which stores marked up text as a tree for efficient slicing/tagging
2015-02-16 12:19:26 -05:00
Dan Kaplun
d825f7dacb Fixes and closes #124 2015-02-06 23:25:20 -05:00
Dan Kaplun
d8081e587c Closes and fixes #120 2015-02-05 08:40:43 -05:00
Alex Taylor
ab69224856 Simple fix for #120
Avoids raising a warning by placing `self.ready` in a function.
2015-02-04 20:43:15 -08:00
Dan Kaplun
57ed4a93cc Fixes plugin support 2015-02-01 12:42:15 -06:00
Dan Kaplun
55ddf3960c Makes console.error log to slap.log 2015-02-01 11:58:18 -06:00
Dan Kaplun
b5daf8619b Improves update notification and removes auto-updating 2015-01-30 22:35:36 -06:00
Dan Kaplun
2b12e492d1 Factors Editor.copy and Editor.paste into slap-clipboard-plugin 2015-01-30 20:50:31 -06:00
Dan Kaplun
bccb1b7f01 Adds plugin support 2015-01-30 17:59:16 -06:00
Dan Kaplun
a113663af0 Fixes cursor position in header 2015-01-30 14:40:27 -06:00
Dan Kaplun
4b73869fe4 Implements BaseElement.ready 2015-01-30 13:28:12 -06:00
Dan Kaplun
6d44948aa3 Fixes mouse movement 2015-01-30 13:05:02 -06:00
Dan Kaplun
9e98a009ab Fixes get-random-port not being installed by default 2015-01-30 11:11:58 -06:00
Dan Kaplun
7b3c67c72d Refactors Editor.buffer{Pos,Size} to BaseElement.{pos,size} 2015-01-30 10:39:25 -06:00
Dan Kaplun
f92c44fe54 Fixes FindForm, GoLineForm, BaseFindForm 2015-01-30 10:39:25 -06:00
Dan Kaplun
2e48d6db99 If debugging, attempts to ensure a debug port for highlight client 2015-01-30 10:39:24 -06:00
Dan Kaplun
b38d44edd5 Reimplements Editor with Atom's text-buffer 2015-01-30 10:39:24 -06:00
Dan Kaplun
f2e3f6868e Clear GoLineForm findField on show 2015-01-29 02:23:51 -06:00
Dan Kaplun
523bbd441c Keystrokes and mouse events now logged as 'silly' level events 2015-01-28 22:28:31 -06:00
Dan Kaplun
d9f5686078 Kills highlight client on quit 2015-01-28 21:05:29 -06:00
Dan Kaplun
9e4ddabe96 Fixes ./slap.log (due to child highlight process) 2015-01-28 14:41:05 -06:00
Dan Kaplun
d28d54f2f7 Cancelling any FindForm will reset the editor on cancel 2015-01-28 00:41:02 -06:00
Dan Kaplun
04b337ccd9 Throttles selection match finding, render throttling now configurable 2015-01-03 08:11:44 -06:00
Dan Kaplun
3c075a9456 Only enable debugging in highlight process if it's enabled in the main process 2015-01-03 07:38:09 -06:00
Dan Kaplun
2b8bff6e21 Optimisation for getBinding 2015-01-03 05:55:28 -06:00
Dan Kaplun
b1f5c8fb65 Makes it easier to debug 2015-01-03 05:20:54 -06:00
Dan Kaplun
fb9a6a986c Improves boolean argument parsing 2014-12-29 04:18:56 -06:00
Dan Kaplun
8cd600699b Highlighting is now disableable 2014-12-29 04:07:47 -06:00
Dan Kaplun
a167330608 Changes --profile to --perf.profile and adds option to slap.ini 2014-12-29 03:45:15 -06:00
Dan Kaplun
ddf1fd604f Adds --profile flag 2014-12-29 03:41:12 -06:00
Dan Kaplun
b739d21571 Fixes ghost match highlighting on selection change
Closes #100
2014-12-26 05:52:32 -06:00
Dan Kaplun
1b3cdf2f98 Fixes auto-indentation 2014-12-26 05:50:06 -06:00
Dan Kaplun
72976d2719 Deletes lib/ui/BaseDialog 2014-12-22 23:15:44 -06:00
Dan Kaplun
1d45ac1efb Minor tweaks to gregjoy1's header position PR
Closes #48
2014-12-21 18:38:58 -06:00
Greg Joy
27dbbbc052 Implemented header top/bottom positioning via config 2014-12-21 18:32:56 -06:00
Dan Kaplun
6714a54263 Fixes blinking in Terminal.app
Apparently blessed uses style.blink

Fixes #39
2014-12-21 04:27:02 -06:00
Dan Kaplun
c542adbf21 Stops auto-update functionality from creating npm-debug.log 2014-12-21 03:55:11 -06:00
Dan Kaplun
977d7cca8e Fixes relative path bug for new files 2014-12-21 03:02:11 -06:00
Dan Kaplun
d9fcac66ab Adds new version notification
Closes #82
2014-12-21 01:51:37 -06:00
Dan Kaplun
2930da6fda Implements auto-updating
Closes #84
2014-12-21 01:40:03 -06:00
Dan Kaplun
7392a2c97b Moves shrinkWidth to BaseElement from util 2014-12-21 01:27:52 -06:00
Dan Kaplun
e6f4e5ec16 Shows readonly status in header 2014-12-21 01:15:54 -06:00
Dan Kaplun
d49dc001f4 Help now opens slap.ini
Deletes lib/ui/HelpDialog.js
2014-12-21 01:06:44 -06:00
Dan Kaplun
b72e185d98 Shows relative path in header 2014-12-21 01:02:34 -06:00
Dan Kaplun
b032c092ae Adds warning message if xclip is not installed 2014-12-21 00:39:49 -06:00
Dan Kaplun
128c71436b Updates CLI usage string and README.md to support opening multiple files and dirs 2014-12-21 00:05:44 -06:00
Dan Kaplun
029323c165 Minor changes to katywings' encoding PR
Closes #95
2014-12-20 23:43:56 -06:00
Katja Lutz
110f4b80d1 Added file encoding support with options and autodetection 2014-12-20 23:41:51 -06:00
Dan Kaplun
47404b8b00 Minor bugfixes 2014-12-20 22:58:31 -06:00
Dan Kaplun
6172520d42 Removes pane logic from Slap.js 2014-12-05 02:45:35 -06:00
Dan Kaplun
4fc4ba2dff Minor tweaks 2014-11-13 15:29:17 -06:00
Dan Kaplun
f2e506df93 Tries logging to ~/.slap/slap.log instead of ./slap.log 2014-11-13 03:06:17 -06:00