Commit Graph

24013 Commits

Author SHA1 Message Date
Cheng Zhao
f4161a1889 Restart interval of main window should be longer than specs window. 2013-04-08 12:00:52 +08:00
Cheng Zhao
17e9c6ea3b Restart renderer process when reloaded for 4 times.
Fix #481.
2013-04-08 12:00:52 +08:00
Kevin Sawicki
dc94855e1a Parse emoji start, word, and end into different scopes 2013-04-07 15:07:57 -07:00
Kevin Sawicki
4636e9ca40 Unsubscribe if editor has no session 2013-04-07 14:52:20 -07:00
Cheng Zhao
049a2b3884 Merge pull request #485 from github/node-pathwatcher
Use node-pathwatcher to replace $native.watchPath.
2013-04-07 05:50:43 -07:00
Cheng Zhao
7c8e1634b8 Remove native path watcher code. 2013-04-07 19:33:27 +08:00
Cheng Zhao
e0865e8c38 Use node-pathwatcher. 2013-04-07 16:35:35 +08:00
Cheng Zhao
20580a5da8 Merge pull request #478 from github/no-drag-drop
Don't respond to drag-drop of external files
2013-04-05 23:39:42 -07:00
Kevin Sawicki
fcb90abfda Don't show status colors on selected arrow 2013-04-05 15:05:43 -07:00
Kevin Sawicki
b9fcfda904 Only match brackets if underlayer is visible 2013-04-05 15:05:43 -07:00
Garen Torikian
fe0dc8181a More doc updates--now at 15% 2013-04-05 14:33:58 -07:00
Garen Torikian
003813f39d Add statsOnly task 2013-04-05 13:54:56 -07:00
Nathan Sobo
763729d08d 🏇 Use buffer ranges to see if selections intersect 2013-04-05 14:52:36 -06:00
Nathan Sobo
6042439598 Add emacs bindings for add selection commands: alt-ctrl-n/p 2013-04-05 14:52:36 -06:00
Nathan Sobo
987f80aeb3 Bind add selection commands to alt-shift-up/down 2013-04-05 14:52:35 -06:00
Nathan Sobo
abc5ed5190 Add editor:add-selection-above command 2013-04-05 14:52:35 -06:00
Nathan Sobo
3e07351552 Also bind escape to consolidate selections in mini editors 2013-04-05 14:52:35 -06:00
Nathan Sobo
a7091c8d94 Remove *all* !important expressions once specificity is calculated 2013-04-05 14:52:35 -06:00
Nathan Sobo
37e16bb163 Clear multiple selections on escape
The binding uses the `!important` selector to ensure that the editor
always gets a chance to clear multiple selections before other bindings
for escape are processed.
2013-04-05 14:52:35 -06:00
Nathan Sobo
7018f33ad7 Allow !important flag in keymap selectors 2013-04-05 14:52:35 -06:00
Nathan Sobo
2efed9f42c Add EditSession.consolidateSelections() 2013-04-05 14:52:30 -06:00
Nathan Sobo
bd58834e7d Merge goal ranges when merging selections 2013-04-05 14:17:21 -06:00
Nathan Sobo
be009e87c2 Skip empty lines when adding selections below empty selections
Unless the selection's column is 0
2013-04-05 14:17:21 -06:00
Nathan Sobo
393cba4d42 Don't skip shorter lines when the adding empty selection below 2013-04-05 14:17:21 -06:00
Nathan Sobo
131df22c11 Skip lines that are too-short when adding non-empty selection below 2013-04-05 14:17:21 -06:00
Nathan Sobo
40d7fcf32c 🙊 2013-04-05 14:17:21 -06:00
Nathan Sobo
ff8491f8d3 Base cursor visibility on marker emptiness instead of tail status 2013-04-05 14:17:20 -06:00
Nathan Sobo
f22461e5e8 Clear goal range when selection is modified
Just like the cursor clears its goal column when it is moved in any
way other than vertically, the selection clears its goal range (the
range it will attempt to use when adding a selection below) when it
is changed in any way.
2013-04-05 14:17:20 -06:00
Nathan Sobo
7b7c77645c Rename SelectionView.destroyed to .needsRemoval to match CursorView 2013-04-05 14:17:20 -06:00
Nathan Sobo
f6bfab5dd7 Don't freak when selections are added & removed before display update
Previously, if a selection was added and removed before the editor got
a chance to update its display, it would try to add a selection view
for the destroyed selection. Now we check the new selections and
cursors to make sure they aren't destroyed before we add views for
them.
2013-04-05 14:17:20 -06:00
Nathan Sobo
31579703f0 Ensure new non-empty selections have an invisible cursor. 2013-04-05 14:17:20 -06:00
Nathan Sobo
34019951d3 💄 2013-04-05 14:17:20 -06:00
Nathan Sobo
af923cca9b Preserve original selection's range when adding selection's below
Just like the cursor tries to stay in its "goal column" when moving
vertically, here we try to keep the same selection even when adding
across shorter lines.
2013-04-05 14:17:20 -06:00
Nathan Sobo
26e53584c1 Add 'editor:add-selection-below' command
It still needs work, but the basic idea is for every selection to
add another another selection over the same column range of the line
below.
2013-04-05 14:17:20 -06:00
Kevin Sawicki
9633677bcc Only check for updates on code signed builds 2013-04-05 10:16:56 -07:00
Kevin Sawicki
f8fbfc8624 Don't show status color on arrow when selected 2013-04-05 09:34:25 -07:00
Kevin Sawicki
c8dd9f8d82 Use indexOf instead of substring to check path 2013-04-05 09:07:31 -07:00
Kevin Sawicki
1e3d157f49 💄 2013-04-05 09:01:02 -07:00
Kevin Sawicki
9843147c3d Ignore tag files in any directory 2013-04-05 08:52:17 -07:00
Kevin Sawicki
30fb637f86 Add spec for excluding ignored files from Project.scan() 2013-04-05 08:45:00 -07:00
Kevin Sawicki
6e4d9508aa Close browser instead of sending shutdown message
CEF now supports calling the beforeunload handler when closed
so we no longer need to send a shutdown message on the native
side.
2013-04-05 08:34:04 -07:00
Cheng Zhao
1fcc0adf6c Update cefode2 to cefode3. 2013-04-05 23:00:58 +08:00
Cheng Zhao
33de90a0b6 dataTransfer.setData only accepts string. 2013-04-05 10:30:18 +08:00
Garen Torikian
9e38537239 Hella docs, we're up to 10% coverage 2013-04-04 18:54:36 -07:00
Kevin Sawicki
84107317bb Support opening non-existent files from the CLI
This required changing text-buffer to support having a
path but not underlying file that exists yet.

Now calling RootView.open() with a non-existed path will
open a dirty empty editor to the path and the file will be
created on first save.
2013-04-04 17:08:05 -07:00
Kevin Sawicki
931ae677c1 💄 2013-04-04 16:37:52 -07:00
Kevin Sawicki
8745ef8723 💄 2013-04-04 16:29:15 -07:00
Kevin Sawicki
062d07ada0 💄 2013-04-04 15:52:53 -07:00
Kevin Sawicki
6166f8e681 Remove unused require 2013-04-04 13:40:48 -07:00
Kevin Sawicki
bb2ab15753 Open files specified via CLI in existing window
Activate the window and open an editor when a path is specified
that is already present in an existing window's project.

Closes #357
2013-04-04 13:40:48 -07:00