Commit graph

110 commits

Author SHA1 Message Date
Thomas Wilburn
7ce7e2b3fa Move tab retention to an ongoing process, instead of doing it after render. 2014-07-06 19:30:39 -07:00
Thomas Wilburn
55cdbeea66 Add a null file type that can't be written. Fixes #258. 2014-06-29 16:23:03 -07:00
Thomas Wilburn
bc75171224 Debounce tab rendering for a little less painting churn. 2014-05-12 20:14:27 -07:00
Thomas Wilburn
2fd765b776 Fix a bug where the settings files aren't pulled before loading.
Fixes #197
2014-04-23 10:15:37 -07:00
Voica Adrian
d9fef43e22 New tab button (cleanup) and doubleclick tab bar. 2014-03-24 17:18:25 +02:00
Thomas Wilburn
c4cc9f4598 Fix some bugs with the palette, syntax cleanup, add comments. 2014-02-26 18:56:05 -08:00
Thomas Wilburn
1d18d42e38 Clean up session dependencies 2014-02-23 15:48:51 -08:00
Thomas Wilburn
10385d5579 Session refactoring mostly done 2014-02-23 14:21:59 -08:00
Thomas Wilburn
ecf39ae914 Merge branch 'master' of github.com:thomaswilburn/Caret 2014-02-23 12:59:23 -08:00
Thomas Wilburn
2d68149cc5 . 2014-02-23 12:30:30 -08:00
Thomas Wilburn
b6d4371400 Start moving session state into an external module, similar to the way that Ractive splits out its modules. 2014-02-23 12:28:41 -08:00
Thomas Wilburn
3be5176d7b Detect syntax bug--finally fixed? 2014-02-21 22:27:36 -08:00
Thomas Wilburn
832e7c7f66 Tweaks to inactive tab styles. 2014-02-21 21:13:20 -08:00
Thomas Wilburn
52f8abbdc6 Fix a bug where syntax was detected but the dropdown wasn't set. 2014-02-21 20:46:28 -08:00
Thomas Wilburn
6717481072 Fixed a bug that refused to open the default settings files. 2014-02-20 13:09:16 -08:00
Thomas Wilburn
57d2b986b5 Add Settings.pull() for modules that want to request configs asynchronously instead of blocking load 2014-01-20 22:10:06 -08:00
Thomas Wilburn
57fec531c8 Move the Settings singleton into its own file for modules that want to load configs asynchronously. 2014-01-20 21:24:50 -08:00
Thomas Wilburn
5d250ef5e5 Added comments 2014-01-20 18:10:35 -08:00
Thomas Wilburn
81507d4a9c Refactor tab syntax and rendering out of sessions and into tab.js 2014-01-20 18:03:18 -08:00
Thomas Wilburn
6f762a9e59 Set up a valid init:complete event, process launch commands then. 2014-01-12 15:35:30 -08:00
Thomas Wilburn
d5c154838a Simplify tab context URLs -- they're not a heirarchy, they don't need a root path segment. 2014-01-12 10:37:52 -08:00
Thomas Wilburn
d26797ca80 Merge pull request #125 from mastercactapus/dragdrop
allow drag-drop opening of files and directories
Fixes #121
2014-01-12 01:24:49 -08:00
Nathan Caza
341812c5ac allow drag-drop opening of files and directories 2014-01-12 03:12:14 -06:00
Thomas Wilburn
b10a83b64e Remove data that's added now that we're using links instead of spans for tabs. 2014-01-12 00:32:21 -08:00
Thomas Wilburn
0f5f335655 Bugs in removeTab were keeping closeTabsRight from iterating. 2014-01-12 00:10:06 -08:00
Thomas Wilburn
77ea4ca42e Mental note, don't comment out code you want to run. 2014-01-11 23:58:45 -08:00
Thomas Wilburn
d61fb669a8 Added command binding for closing tabs to right
Also moved closeTab() function into a lambda, since it's confusing to
have both it and removeTab(), and the former only works with the context
menu anyway.
2014-01-11 23:57:34 -08:00
Nathan Caza
f6d33a3717 Made tabs anchors instead of span, allowing context menus
- Added Close and Close tabs to the right
use element instead of tabEl
add e.preventDefault() to stop tabs from opening a new window
2014-01-12 00:34:37 -06:00
Thomas Wilburn
2c34939a43 Open a new window if a command is received while inactive.
Commands will be buffered and passed in to be fired on initialization.
To suppress app launch, add the quiet flag to your command when firing
the message from an extension.
Fixes #122
2014-01-10 22:15:35 -08:00
Thomas Wilburn
37cd59d0a6 Add async callbacks to a bunch of commands
See #80.
2013-12-23 16:15:03 -08:00
Thomas Wilburn
1b04983d84 Use promises in tabs, sessions, fileManager. 2013-12-23 10:27:51 -08:00
Elisée Maurer
154b93c94d Shorten function name to enableTabMiddleClick 2013-12-21 07:18:49 +01:00
Elisée Maurer
ae42c58ada Close tab on middle-click
Also make sure we only fire regular commands when left-click is used,
not for any buttons
2013-12-21 07:02:54 +01:00
Thomas Wilburn
0227e06d46 Fixes #103 2013-12-20 15:10:23 -08:00
Elisée Maurer
53da1b8084 Implement change-tab-linear command, fixes #96
Bring back the ability to switch tabs linearly (to the left / right)
2013-12-19 19:00:50 +01:00
Thomas Wilburn
6595a39f75 Update syntax/theme dropdowns when setting from palette. 2013-12-16 09:21:55 -08:00
Thomas Wilburn
73cf465bea Manifest bump, style tweak. 2013-12-10 22:57:18 -08:00
Daniel Loomer
ea5a0f3a8b only reorder when there is a target
Fixes disappearing tabs, previously the tab was being removed from the
tab array and disappearing from the UI when sorted since the "from" and
"onto" were the same (itself).
2013-12-10 21:20:01 -05:00
Thomas Wilburn
dfe8749c58 Organized module locations. Fixed a context menu bug. 2013-12-04 09:24:04 -08:00
Thomas Wilburn
98e0a4f96a Merge #76
Corrected a possible array index error, used numbers instead of strings
for JSON. I should probably be better about being defensive, but
nothing's perfect.
2013-11-24 20:27:52 -05:00
Thomas Wilburn
1fedef397e Allow dialogs to use shortcut keys. Fixes #66. 2013-11-08 16:57:35 -08:00
Thomas Wilburn
14d9e5a47d Correctly set syntax when saving a new file. 2013-11-06 08:46:20 -08:00
Thomas Wilburn
13b9577863 Project files can include settings, which will override user prefs. 2013-11-06 08:35:57 -08:00
Thomas Wilburn
ab5ebb976b Show file size message in status bar when adding a tab 2013-11-06 07:48:18 -08:00
Thomas Wilburn
32c94db775 Added class sugar to dom2.js 2013-11-04 08:41:22 -08:00
Thomas Wilburn
33e8cb1425 Enable tab indentation for people who are wrong. 2013-10-24 12:32:30 -07:00
Thomas Wilburn
7de38ce442 Tab tweaks. 2013-10-17 09:09:37 -07:00
Thomas Wilburn
0c1183efae Added enter animations for tabs, which is kind of fun. 2013-10-16 17:06:32 -07:00
Thomas Wilburn
8573832fe7 File watching events should be dispatched correctly. Fixes #52 2013-10-09 20:24:30 -07:00
Thomas Wilburn
b330709260 Palette fixes, converted command to synchronous calls. 2013-10-08 09:27:28 -07:00