Commit Graph

14143 Commits

Author SHA1 Message Date
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
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
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
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
Mutwin Kraus
3a3336aaaa Merge remote-tracking branch 'origin/master' into vim-core-changes 2013-04-04 20:19:00 +02:00
Kevin Sawicki
e442dfff11 Support joining editor lines with ctrl-J
This can be used with or without a selection to join one
or more lines with the line below it separated by a space.

Refs #134
2013-04-04 11:07:59 -07:00
Kevin Sawicki
9773751e79 Delete left when meta-backspacing at start of line
Previously EditSession.backspaceToBeginningOfLine() would do nothing
if at the beginning of the line.

Now it selects left and does a delete so it can be used to delete
multiple lines continuously without having to move the cursor.

Refs #134
2013-04-04 09:25:35 -07:00
Mutwin Kraus
26bcf7718b Revert "Selection support for bracket matcher"
This reverts commit 460c4a0b09.
2013-04-04 15:03:35 +02:00
Mutwin Kraus
42119ecb29 Merge remote-tracking branch 'origin/master' into vim-core-changes
Conflicts:
	src/app/text-buffer.coffee
2013-04-04 14:23:58 +02:00
Cheng Zhao
f37265978e Only respond to drag-drop of tabs in tab bar. 2013-04-04 16:23:46 +08:00
Cheng Zhao
f455379a17 No drag-drop by default. 2013-04-04 15:31:06 +08:00
Kevin Sawicki
bac2209449 Remove unneeded syntax.off() call
syntax.on() is no longer called anywhere in the package.
2013-04-03 17:51:24 -07:00
Corey Johnson & Nathan Sobo
2f4bbd90a6 Don't emit grammars-loaded event 2013-04-03 18:34:54 -06:00
Corey Johnson & Nathan Sobo
5c9dd50e39 Start spell-checking immediately
When the grammar changes, spell check will detect this and toggle
itself accordingly. Before a grammar matches a buffer, it has the
NullGrammar, which won't be spell-checked.
2013-04-03 18:34:54 -06:00
Corey Johnson & Nathan Sobo
2973a81293 Don't assign text grammar by default. Just use the null grammar. 2013-04-03 18:34:54 -06:00
Corey Johnson & Nathan Sobo
144984c726 Make LanguageMode unsubscribe from syntax global when destroyed 2013-04-03 18:34:54 -06:00
Corey Johnson & Nathan Sobo
1b56cfb270 LanguageMode switches to a better-matching grammar when it is added 2013-04-03 18:34:54 -06:00
Corey Johnson & Nathan Sobo
16b53d3183 Eliminate syntax.grammarsByFileType hash 2013-04-03 18:34:53 -06:00
Corey Johnson & Nathan Sobo
05d6adc6c7 Change syntax.selectGrammar to choose the highest-scoring grammar
This sets us up to switch to a grammar when it is loaded if it is a
better match for the current file.
2013-04-03 18:34:53 -06:00
Nathan Sobo
ed1c5d3417 Localize grammar reloading / setting to LanguageMode
Previously, logic associated with swapping grammars was a bit
scattered. Now grammar reloading / assignment methods delegate to
LanguageMode directly, and it emits a 'grammar-changed' event when
the grammar changes. Now EditSession and TokenizedBuffer listen for
this event and perform necessary actions for grammar change.
2013-04-03 18:34:53 -06:00
Kevin Sawicki
cf357376b3 Only add wrap guide to pane-based editors 2013-04-03 17:30:24 -07:00
Kevin Sawicki
b4eb7d072e Only expand folder when needed for file asserts
Closes #470
2013-04-03 17:07:23 -07:00
Kevin Sawicki
b50b2231d6 Render all operations when moving to bottom 2013-04-03 15:55:07 -07:00
Kevin Sawicki
a762291de9 Render more operations when path is collapsed
Previously the command panel would shrink when a path was
collapsed since operations that hadn't been rendered yet weren't
properly added to the DOM.

This removes the collapse/expand animation since it becomes jittery
when combined with rendering new path and operation views.
2013-04-03 15:53:07 -07:00
Kevin Sawicki
ec2b116674 💄 2013-04-03 15:53:07 -07:00
Kevin Sawicki
0b9f6b14ba Put 'atom' in window title when no panes are open
Previously the title would revert to 'index.html' when
focus was gained and no panes were open.
2013-04-03 15:53:07 -07:00
Corey Johnson & Nathan Sobo
101605e50f Add atom.crashMainProcess and atom.crashRenderProcess 2013-04-03 15:08:16 -07:00
Kevin Sawicki
5d2a0a0223 Use fs.chmod() to make atom.sh executable 2013-04-03 15:01:23 -07:00
Kevin Sawicki
8447a22419 Support reloading the window from the event palette 2013-04-03 14:48:11 -07:00
Kevin Sawicki
d1fd3c8d7c Invoke callback with empty array on non-zero exit code 2013-04-03 13:54:52 -07:00
Kevin Sawicki
a5870cedd2 Use more generic core.excludeVcsIgnoredPaths config key 2013-04-03 11:45:55 -07:00
Kevin Sawicki
ede5e88a19 Merge origin/master into nak-powered-search
Conflicts:
	src/packages/command-panel/lib/preview-list.coffee
	src/packages/fuzzy-finder/lib/load-paths-task.coffee
2013-04-03 11:43:35 -07:00
Kevin Sawicki
0b3a91b5fe Rename VCS ignore config setting to fuzzyFinder.hideVcsIgnoredPaths 2013-04-03 11:39:16 -07:00
Kevin Sawicki
ace71acb3c Invoke callback even when command fails 2013-04-03 11:34:27 -07:00
Kevin Sawicki
19cf333e52 Use long opts for readability 2013-04-03 11:32:42 -07:00
Kevin Sawicki
e176141846 Follow symlinks loading paths 2013-04-03 11:22:20 -07:00
Nathan Sobo
930cd9551b 💄 add eof newlines 2013-04-03 12:01:37 -06:00
Nathan Sobo
f03b6207de Make all requires of 'fs-utils' assign to fsUtils var instead of fs 2013-04-03 12:01:37 -06:00
Mutwin Kraus
08783f19e4 Skip save confirmation for pane 2013-04-03 19:48:29 +02:00
Nathan Sobo
5df78812ef Rename EditSession.scanInRange to scanInBufferRange
This is more consistent with other range-oriented methods on
EditSession. At this layer, we need to be explicit about what kind
of range we are talking about.
2013-04-03 11:28:55 -06:00
Nathan Sobo
59a5a5bc8f Always pass a hash to TextBuffer.scanInRange iterators
This makes it easy to only assign variables for the information you
need in the iterator. Before, we always forced you to take a match and
a range as the first two arguments even if you weren't using them.
2013-04-03 11:16:49 -06:00
Nathan Sobo
68a02fe009 Use backwardsScanInRange instead of passing true 2013-04-03 11:03:45 -06:00