Commit graph

296 commits

Author SHA1 Message Date
Thomas Wilburn
de8e444e36 Added the ability to open new tabs with content via command 2013-12-05 12:28:47 -08:00
Thomas Wilburn
5b4a3e22f7 Removed window.sync, added some comments. 2013-12-04 23:34:49 -08:00
Thomas Wilburn
8aef22694e Add commands for status messages. 2013-12-04 14:50:01 -08:00
Thomas Wilburn
0f2355fb2d Convert over to syncFS (not syncFileSystem) for storing settings. 2013-12-04 10:52:56 -08:00
Thomas Wilburn
5ac6e4c8e7 Remove logging. 2013-12-04 10:10:10 -08:00
Thomas Wilburn
04a7cc6e93 Do not re-request defaults, they can't have changed. 2013-12-04 10:09:49 -08:00
Thomas Wilburn
dfe8749c58 Organized module locations. Fixed a context menu bug. 2013-12-04 09:24:04 -08:00
Thomas Wilburn
d31049046d Provide sample API message, add a menu item for api.json 2013-12-02 15:38:12 -08:00
Thomas Wilburn
3f992a3e43 Added ability to turn off line highlight.
Fixes #77.
2013-12-02 15:17:46 -08:00
Thomas Wilburn
fa0ab6112e Use Chrome's window position memory instead of manually restoring position. 2013-11-24 21:08:18 -05:00
Thomas Wilburn
3117a046c2 Start some work on adding a pass-through messaging API.
See comments on #29
2013-11-24 20:53:55 -05: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
a77d4bcc8b Fix project manager rendering crash if user cancels. 2013-11-21 13:42:54 -08:00
Thomas Wilburn
b4520b0a6d Cosmetic tweaks to the project manager. 2013-11-21 10:18:43 -08:00
Thomas Wilburn
cc5613698a Using an input proxy was crap, switch to tracking doc clicks. 2013-11-21 09:40:09 -08:00
Thomas Wilburn
f7da885f05 Clean up menu focus by adding an input to serve as a focus proxy.
Fixes #74.
2013-11-21 09:30:59 -08:00
Thomas Wilburn
2bb1434a46 Allow enter key to trigger dialog buttons. 2013-11-19 08:36:37 -08:00
Thomas Wilburn
9480783353 Add ability to change font size on thefly 2013-11-19 08:20:05 -08:00
Thomas Wilburn
e0a03a46d3 . 2013-11-19 08:19:47 -08:00
Thomas Wilburn
2545890048 Fix dialog bug where Ctrl-W can close window, and focus cycles into open project. Fixes #71 2013-11-19 08:19:18 -08:00
Thomas Wilburn
7813c883ae Added Son of Obsidian theme (thanks Luciano)
Also switched back to un-minified Ace for debugging.
2013-11-12 10:10:47 -08:00
Thomas Wilburn
0aaae789ce Tiptoe around acceptsMultiple for the sake of Chrome 29 users. 2013-11-11 13:31:41 -08:00
Thomas Wilburn
1fedef397e Allow dialogs to use shortcut keys. Fixes #66. 2013-11-08 16:57:35 -08:00
Thomas Wilburn
e6ccbdaac6 Somewhere we lost the point of retainFocus in menus. 2013-11-08 16:32:11 -08:00
Thomas Wilburn
c88c38bb32 Fix bug around bad Ace wrapping when project panel expands 2013-11-07 18:06:44 -08:00
Thomas Wilburn
12a04321a4 Add URLs to files, return URL with params when routing internally 2013-11-07 17:32:38 -08:00
Thomas Wilburn
28078cc624 Make root directory URLs a superset of directory URLs (will allow them to use the same file ops) 2013-11-07 17:25:31 -08:00
Thomas Wilburn
4538be08f4 Fix bug where root directories beyond the first weren't correctly ID'd for menus. 2013-11-07 17:04:50 -08:00
Thomas Wilburn
9696911b92 Add safeguards where the project file might have a null FS entry. 2013-11-07 10:24:50 -08:00
Thomas Wilburn
213346822b Added context menu module, wired up a 'remove directory' menu in projects. 2013-11-06 21:56:12 -08:00
Thomas Wilburn
631b02d724 Add ability to check for updates at any time. 2013-11-06 12:18:50 -08:00
Thomas Wilburn
3d824a9c4a Cleared up project file editing flow. 2013-11-06 12:02:20 -08:00
Thomas Wilburn
c0f37afd43 Fixed directory triangle display, added menu divider. 2013-11-06 09:55:11 -08:00
Thomas Wilburn
23a5bf5c26 Correct a project loading bug, add folder triangles 2013-11-06 09:17:05 -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
c6ed48354d Added project file loading, panel animation 2013-11-06 08:12:00 -08:00
Thomas Wilburn
c3f9f47368 Use display paths to find any open tabs matching the selected file in the project panel. 2013-11-06 08:05:13 -08:00
Thomas Wilburn
966d90e0e6 Use manos.chain() to clear up retained file reading. 2013-11-06 07:55:01 -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
ffc2f4dcc6 Greatly speed up restore by processing files in parallel. 2013-11-06 07:37:56 -08:00
Thomas Wilburn
21badb1394 Added a getPath() method on files 2013-11-06 07:37:34 -08:00
Thomas Wilburn
7b060a3512 Added clearing project support 2013-11-05 18:52:00 -08:00
Thomas Wilburn
5f39f89bbd Working project file restore, but with some issues on switching to retained files 2013-11-05 18:46:16 -08:00
Thomas Wilburn
97e2d63e70 Added opening tabs, switching to tabs from project navigator. 2013-11-05 17:44:19 -08:00
Thomas Wilburn
143ce02d42 Directory tree expansion/collapse 2013-11-04 08:53:15 -08:00
Thomas Wilburn
32c94db775 Added class sugar to dom2.js 2013-11-04 08:41:22 -08:00
Thomas Wilburn
a59a0a4880 Added notes on how project support will work going forward. 2013-11-03 17:15:34 -08:00
Thomas Wilburn
6e452273ba Adding project styles, menu 2013-11-03 16:28:17 -08:00
Thomas Wilburn
a09344f845 Disabled automatic PM launch, cleaned up CSS, added project panel element 2013-11-02 19:29:10 -07:00
Thomas Wilburn
e8969929b7 Added notes for project stubs 2013-11-02 18:30:37 -07:00
Thomas Wilburn
22c56da448 Start of work on project management 2013-11-02 17:51:28 -07:00
Thomas Wilburn
9da0f96696 Filter menus/palette based on Chrome major version. 2013-11-01 16:24:57 -07:00
Thomas Wilburn
51f52b0755 Fix a focus bug when manually closing menu. 2013-10-30 09:29:26 -07:00
Thomas Wilburn
8ee275ea90 Update Ace to latest version. 2013-10-30 09:26:43 -07:00
Thomas Wilburn
a95d50bc9e Fixed typo. 2013-10-28 14:13:55 -07:00
Thomas Wilburn
d2caf1741b Use the notification tray for updates, instead of dialogs. 2013-10-28 14:02:11 -07:00
Thomas Wilburn
c7649cc42e Fixes #61 2013-10-28 12:58:24 -07:00
Thomas Wilburn
3c851c0f44 Simplify creating new File objects from FileEntries. 2013-10-28 12:12:08 -07:00
Thomas Wilburn
6109361502 Support acceptsMultiple when opening files. 2013-10-28 11:59:14 -07:00
Thomas Wilburn
b96692eddf Add autocomplete option. 2013-10-28 09:18:43 -07:00
Thomas Wilburn
adfb259346 Convert tabs to spaces and back again 2013-10-24 19:13:07 -07:00
Thomas Wilburn
33e8cb1425 Enable tab indentation for people who are wrong. 2013-10-24 12:32:30 -07:00
Thomas Wilburn
50730b1976 Take advantage of the auto-resize added recently to Ace. 2013-10-21 16:11:23 -07:00
Thomas Wilburn
211452c9a9 Add a special reference test for JavaScript, which gets all the syntax love.
Also fix a bug where results were reordered when the "current" tab
changed.
2013-10-17 15:39:54 -07:00
Thomas Wilburn
f4fa2e6df8 Accidentally removed other modes. 2013-10-17 13:56:27 -07:00
Thomas Wilburn
382e1b9948 Add "function" tag to the reference search. Also set the current tab to be first in the list when searching all. 2013-10-17 13:53:21 -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
3e8ffff7ff Limit the command search to ten items. 2013-10-15 14:42:25 -07:00
Thomas Wilburn
9a2ab1e87d Fix a bug causing hidden 11th result in the palette. 2013-10-15 14:23:28 -07:00
Thomas Wilburn
541ef85e2c Added search by reference
Also added an option to search all files by default. Fixes #57 and #53.
2013-10-14 22:17:58 -07:00
Thomas Wilburn
72a682a309 First pass at caching palette results, reference search.
See also #57.
2013-10-14 17:00:13 -07:00
Thomas Wilburn
019a284444 Worst. Mac support. Ever. 2013-10-12 16:25:25 -07:00
Thomas Wilburn
23bfb59c76 Better error messages and logging for failed file.restore() 2013-10-09 22:29:27 -07:00
Thomas Wilburn
c2b95b29dc Short-circuit removing retention failures if nothing failed to restore. 2013-10-09 21:59:22 -07:00
Thomas Wilburn
c22ecbcd40 Added logging to figure out why tabs don't survive upgrades. 2013-10-09 21:35:06 -07:00
Thomas Wilburn
8573832fe7 File watching events should be dispatched correctly. Fixes #52 2013-10-09 20:24:30 -07:00
Thomas Wilburn
5c25f30cc6 Focus, selection fixes. 2013-10-08 11:15:52 -07:00
Thomas Wilburn
5343b986b4 . 2013-10-08 11:06:47 -07:00
Thomas Wilburn
5109743cb9 Much better expand-to-matching behavior. 2013-10-08 10:21:10 -07:00
Thomas Wilburn
03524a9ef0 Ace has a command we can use directly instead of shimming Sublime's "expand to word" 2013-10-08 09:37:19 -07:00
Thomas Wilburn
b330709260 Palette fixes, converted command to synchronous calls. 2013-10-08 09:27:28 -07:00
Thomas Wilburn
5e43aa558f Restore retained files using Manos async instead of more complicated inline async flow. 2013-10-08 08:31:13 -07:00
Thomas Wilburn
1257c679e7 Converted file to use Manos, a miniature async library. 2013-10-08 08:14:02 -07:00
Thomas Wilburn
84a1c5cc07 Make sure file entries are writable before writing. Fixes #50. 2013-10-08 07:57:23 -07:00
Thomas Wilburn
b0a743c703 That's what bind() is for. 2013-10-07 18:18:41 -07:00
Thomas Wilburn
27bd4847a4 Added selections for word, paragraph, and matching brackets. See issue #48 2013-10-07 18:09:35 -07:00
Thomas Wilburn
20c5a23022 Fix a bug with deactivating menus on editor focus. 2013-10-07 17:59:10 -07:00
Thomas Wilburn
7703be96c5 Fix a bug in saving a new file 2013-10-07 17:54:00 -07:00
Thomas Wilburn
f9a680b27c Consistency in messages (forgot that session is singular). 2013-10-06 23:21:04 -07:00
Thomas Wilburn
53e23f5108 THAT'S NOT HOW ASYNC WORKS. 2013-10-06 23:13:22 -07:00
Thomas Wilburn
0d8f7c50d9 Manifest bump, added a fingerprint method to tabs. 2013-10-06 23:12:35 -07:00
Thomas Wilburn
50d839d66b Refactor tabs into their own module.
Fixes #49.
Fixes #44.
2013-10-06 23:03:14 -07:00
Thomas Wilburn
8939c4d582 Updated Ace, added Handlebars support. 2013-10-06 20:18:05 -07:00
Thomas Wilburn
c8406b3679 Improved search within files to list all results, but only one per line 2013-10-03 21:33:04 -07:00
Thomas Wilburn
301f28bf1b Added search, better labeling, to palette. Fixes #47 2013-10-03 20:59:46 -07:00
Thomas Wilburn
43e2eb4c4d More menu fixes.
We need to move to a unified keyboard shortcut format with Ace, it will
solve a lot of these problems.
2013-10-03 11:26:02 -07:00
Thomas Wilburn
8c46c70eaf Menu tweaks, fix for Toggle Macro shortcut. 2013-10-03 11:04:39 -07:00
Thomas Wilburn
c1be8f5b20 Manifest bump, correct typo in Ace again. 2013-09-25 10:25:12 -07:00
Thomas Wilburn
59e6fba043 Updated to newest version of Ace. 2013-09-25 10:17:13 -07:00
Thomas Wilburn
feecb3e5cd Reset syntax mode when you save out a new file. 2013-09-24 15:39:23 -07:00
Thomas Wilburn
d87e2beb40 Fix a save dialog bug. 2013-09-24 15:35:15 -07:00
Thomas Wilburn
f34b8a4fb2 Remove retain() for setRetained(). Fixes #22. 2013-09-24 12:38:34 -07:00
Thomas Wilburn
3509bbc856 Whitespace. 2013-09-24 12:16:19 -07:00
Thomas Wilburn
7275752aef Fixes for responsiveness and retained file loss. 2013-09-24 11:37:40 -07:00
Thomas Wilburn
474a18dc11 Use the tab stack instead of linear order. Fixes #32. 2013-09-24 11:03:39 -07:00
Thomas Wilburn
24ba113008 Special handling for config JSON that's just an array (i.e. menus.json) 2013-09-24 08:35:41 -07:00
Thomas Wilburn
18deed2e57 Many tweaks to dialogs, moving them to flex and adding better value handling. 2013-09-24 07:57:22 -07:00
Thomas Wilburn
bdc5891148 Resetting a settings file will also reset it in the editor if it is open. 2013-09-23 19:28:52 -07:00
Thomas Wilburn
0a6e209383 . 2013-09-23 19:22:03 -07:00
Thomas Wilburn
c6ecc7a028 Menus understand active state and hover, behave more like native. Fixes #38 2013-09-23 18:02:56 -07:00
Thomas Wilburn
12c7722aa3 Start moving menus into actual class for easier state-tracking and emulation of native menus. 2013-09-23 17:57:09 -07:00
Thomas Wilburn
88c1f1b081 Fix tab raise bug introduced with file manager. 2013-09-21 12:21:25 -07:00
Thomas Wilburn
7adee220fb Palette should trigger file modification check on raise, too. 2013-09-20 17:44:25 -07:00
Thomas Wilburn
7cffe61ad6 Raising a tab will check its modified date. Fixes #25 2013-09-20 17:39:04 -07:00
Thomas Wilburn
b1a0445a0a Removed unreliable selection character counts. Added option for line ending format. 2013-09-20 12:42:24 -07:00
Thomas Wilburn
afd7176745 Added option to disable update prompting.
Updates still happen, you just won't know about them.
2013-09-20 09:24:13 -07:00
Thomas Wilburn
66e0ccde61 Forgot to add statusbar. Palette now uses statusbar.toast(), among a number of other bug fixes. 2013-09-20 08:57:43 -07:00
Thomas Wilburn
c4fd777a8c Added statusbar module. Fixes #39 2013-09-20 08:31:04 -07:00
Thomas Wilburn
2d9c85e154 Added preferences for controlling margin display. 2013-09-20 08:08:41 -07:00
Thomas Wilburn
495c96d296 Fix some palette bugs, especially around the light theme. 2013-09-19 23:45:04 -07:00
Thomas Wilburn
843f98e673 Oops, missing dialog module. 2013-09-16 13:52:54 -07:00
Thomas Wilburn
5ff71e0a5c Added a revert option
Fixes #34
2013-09-16 11:58:37 -07:00
Thomas Wilburn
9ab0a76c84 Move file-specific code out of sessions.js
Fixes #33 (sort of)
2013-09-16 11:16:06 -07:00
Thomas Wilburn
5eaa8a4bb3 Added wrap limit option. 2013-09-16 10:31:07 -07:00
Thomas Wilburn
390104ee53 Added update check, moved layout onto GPU.
Fixes #31
2013-09-16 10:22:49 -07:00
Thomas Wilburn
8148091301 Alternate theme names are funny but end up being confusing. 2013-09-15 10:37:44 -07:00
Thomas Wilburn
fb07441d81 Fixes #28 2013-09-15 09:47:37 -07:00
Thomas Wilburn
038c525567 Add Vim mode for the crazies. 2013-09-14 14:08:25 -07:00
Thomas Wilburn
7c27cdc518 Protect against weird drag/drop by using a custom MIME type. 2013-09-14 13:55:54 -07:00
Thomas Wilburn
01b11788d8 Sweet animations when dragging tabs--take that, native 2013-09-13 23:59:43 -07:00
Thomas Wilburn
ac457fcb02 Improvements to the save/save as flow. 2013-09-13 19:35:57 -07:00
Thomas Wilburn
98fc8a79dc Remove error when cancelling save, dialogs should always be light-themed. 2013-09-13 18:38:11 -07:00
Thomas Wilburn
f7e6e73590 Only load settings files once for all modules, instead of loading once for each that requests a file. 2013-09-13 18:29:19 -07:00
Thomas Wilburn
c32204b9c4 Put the modification dot back--listening on the document instead of the session seems more performant. 2013-09-13 18:11:47 -07:00
Thomas Wilburn
ede582ae98 Saving should always save the file, modified or not. 2013-09-13 16:49:11 -07:00
Thomas Wilburn
b192b69554 Added errors on file read, disabled modification flag to prevent line error for now. 2013-09-13 16:30:05 -07:00
Thomas Wilburn
eb3dd078a3 Possible fix for rendering bug on new lines in unmodified files. 2013-09-13 16:05:37 -07:00
Thomas Wilburn
4ac4258f2b Fixes #24 2013-09-13 16:01:25 -07:00
Thomas Wilburn
e27bcff8c9 Support for light and dark UI themes. 2013-09-13 15:57:57 -07:00
Thomas Wilburn
295ca0c714 Settings are now merged a la Sublime, which is much better for migrations. 2013-09-13 13:26:46 -07:00
Thomas Wilburn
0fcae1f9c0 Add drag and drop tabs, fix some CSS.
Fixes #14
2013-09-13 11:13:00 -07:00
Thomas Wilburn
d07b1eda09 Better syntax memory and handling, particularly for settings JSON 2013-09-13 08:25:39 -07:00
Thomas Wilburn
c8cf1fd610 Added the ability to turn off worker-based hinting. 2013-09-13 08:01:52 -07:00
Thomas Wilburn
9d10dfa9b2 Much better palette with basic command support. 2013-09-10 23:15:04 -07:00
Thomas Wilburn
a5039a0ffe First command palette release. 2013-09-10 21:52:50 -07:00
Thomas Wilburn
a94aa183f5 Merge branch 'master' of github.com:thomaswilburn/Caret 2013-09-10 20:34:36 -07:00
Thomas Wilburn
63b471f122 Add ability to save/restore editor position. 2013-09-10 20:34:28 -07:00
Thomas Wilburn
fa0f0820e8 JSON tweaks. 2013-09-10 16:38:30 -07:00