Commit Graph

12481 Commits

Author SHA1 Message Date
Antonio Scandurra
133a42e395 Merge pull request #8436 from atom/as-batch-cursor-updates
Batch cursor updates
2015-08-20 16:00:07 +02:00
Antonio Scandurra
5c519036dc 🔥 Avoid emitting event on cursor update 2015-08-20 10:06:15 +02:00
Kevin Sawicki
65a465416a 📝 Document flexScale passed to callback 2015-08-19 15:23:11 -07:00
Martin Rodalgaard
7131c39a73 📝 fix pane flex scale doc 2015-08-20 00:15:38 +02:00
Nathan Sobo
55a0be9c81 Merge pull request #8377 from atom/ns-select-screen-lines-from-gutter
Select screen rows when click-dragging in gutter
2015-08-19 14:15:34 -06:00
Nathan Sobo
71974e3e98 Merge pull request #8446 from atom/ns-terminate-drag-on-text-input
Terminate selection drag on text input
2015-08-19 14:13:27 -06:00
Nathan Sobo
8ae3761cd7 Terminate selection drag on text input
On recent versions of OS X Yosemite, there is a delay before we receive
the `mouseup` event when dragging selections with the trackpad. This
means that we’re frequently accidentally inserting text before the
selection process terminates, leading to unexpected selections after the
text insertion. This fixes that behavior and makes the behavior more
straightforward even in the case where the mouse button is remains held
down during text insertion.
2015-08-19 13:44:17 -06:00
Thomas Johansen
c16f252ab7 📝 Rephrase view resolution docs 2015-08-19 20:54:39 +02:00
Thomas Johansen
675e9be262 🔥 Remove mention of semi-deprecated view resolution step 2015-08-19 20:46:24 +02:00
Nathan Sobo
31bdd563ed Select by buffer row on gutter click, but by screen row on gutter drag 2015-08-19 12:46:20 -06:00
Nathan Sobo
3cf9238d79 Select screen rows when click-dragging in gutter
…Instead of entire buffer rows
2015-08-19 12:46:20 -06:00
Thomas Johansen
66d0e7c752 📝 Attempt to document view resolution algorithm 2015-08-19 15:44:16 +02:00
Antonio Scandurra
ea391d017d 🐎 Batch cursor updates 2015-08-19 11:32:16 +02:00
Thomas Johansen
22ca33a3b1 Extend ViewRegistry with support for objects with an element property
By adding this extension to ViewRegistry::getView we're paving the way for
Etch-like view frameworks which promotes the usage of plain objects and
classes with an element property which is an instance of HTMLElement.
2015-08-18 21:38:00 +02:00
Max Brunsfeld
7e197060bc Merge pull request #8025 from lpommers/copy-selection-to-clipboard
Copy selection command to only write to clipboard if text selected
2015-08-18 09:25:59 -07:00
Luke Pommersheim
e96d6f50ad 🎨 newlines fix 2015-08-18 18:22:18 +02:00
Luke Pommersheim
fdb66fd4dc change from essential to private, update comment 2015-08-18 17:06:34 +02:00
Kevin Sawicki
2573f1b6ec Merge pull request #8062 from MaximSokolov/fix-doc-for-marker-callback
Update docs for Marker::onDidChange callback
2015-08-17 18:07:56 -07:00
Luke Pommersheim
33abc6698c move maintainClipboard into if block 2015-08-16 09:04:33 +02:00
Nathan Sobo
a88b648144 Unify gutter drag logic
This ensures the same approach is used to drag the gutter for all modes
of selection.
2015-08-13 15:55:35 -06:00
Nathan Sobo
216e98140d Eliminate unused argument 2015-08-13 15:55:35 -06:00
Ben Ogle
0608f94387 Merge pull request #8356 from atom/bo-tab-type
Support `editor.tabType`
2015-08-13 11:13:13 -07:00
Ben Ogle
4609be7912 Be defensive with grammar in usesSoftTabs() 2015-08-13 10:34:44 -07:00
Max Brunsfeld
c6d8bce137 Merge remote-tracking branch 'origin/master' into mb-custom-extension-grammar-map 2015-08-13 09:59:56 -07:00
Kevin Sawicki
83b99ef962 Move size adjusting to model 2015-08-13 06:54:51 -07:00
Kevin Sawicki
388d716028 pane:enlarge/shrink -> pane:increase-size/decrease-size 2015-08-13 06:54:51 -07:00
liuxiong332
b4109715df add command enlarge and shrink 2015-08-13 06:54:51 -07:00
Max Brunsfeld
0203438669 Add description for customFileTypes in schema 2015-08-12 18:04:52 -07:00
Max Brunsfeld
2493da0a84 Rename fileTypesByScope -> customFileTypes 2015-08-12 17:55:19 -07:00
Ben Ogle
4598e000f4 Remove duplicated bit 2015-08-12 17:33:02 -07:00
Ben Ogle
1b727c1862 Handle a grammar change for @softTabs 2015-08-12 17:32:05 -07:00
Max Brunsfeld
30d8216bf6 Merge branch 'master' into mb-custom-extension-grammar-map
Conflicts:
	package.json
2015-08-12 17:31:15 -07:00
Ben Ogle
1192008479 Update the tab type when the setting changes 2015-08-12 17:21:53 -07:00
Ben Ogle
1544c117a2 Add logic that uses the editor.tabType setting 2015-08-12 17:11:12 -07:00
Max Brunsfeld
5f620fb739 Config::getSchema - use null to represent inaccessible key path 2015-08-12 16:52:25 -07:00
Hernawan Fa'iz Abdillah
8eff9d493d Add description to tabType config 2015-08-12 16:21:37 -07:00
Hernawan Fa'iz Abdillah
0441fa1f10 Add tabType config item 2015-08-12 16:21:05 -07:00
Nathan Sobo
fbea2d7954 Autoscroll correctly when dragging gutter selections
* Explicitly assign the orientation of the selection when it crosses
  the initially clicked row.
* Autoscroll to the cursor, not the entire selection.
2015-08-12 13:13:15 -06:00
Max Brunsfeld
29f47f7fcb Merge pull request #8173 from atom/mb-rename-disabled-keymaps-config-key
Rename 'disabledKeymaps' -> 'packagesWithKeymapsDisabled'
2015-08-12 10:52:53 -07:00
Nathan Sobo
1223d7a154 Process closing scopes at wrap boundaries 2015-08-11 13:13:30 -06:00
Ben Ogle
3817423b5f Remove duplicate pane:move-item-* command handlers
Closes #8300
2015-08-10 16:29:12 -07:00
Nathan Sobo
eb4944b07d Make bufferRangeForScopeAtPosition work with last column of scope 2015-08-10 14:21:23 -06:00
Nathan Sobo
f9a576b0ce Allow Infinity for initialLine/Column; move specs to workspace
The initialLine and initialColumn behavior belongs on workspace.
2015-08-10 11:32:38 -06:00
Nathan Sobo
69da157ecb Add specs for initialLine and initialColumn, simplify implementation 2015-08-10 11:27:15 -06:00
Jong Eun Lee
93586d2410 fix : workspace.open with initial cursor position bug
When opening already opened file via `atom.workspace.open(path,{ initialLine: 0,  initialColumn: 0, searchAllPanes: true} )`, cursor position doesn't move `[0,0]`.

Expected result:
Whether or not file is opened already, cursor position has to be [0,0].
2015-08-07 19:38:35 +09:00
Ben Ogle
6c63e829d8 Move pane item move commands to atom-workspace
This allows pane movement to work in find and replace, the 
tree view, etc.
2015-08-04 11:54:19 -07:00
Nathan Sobo
139dc1b64c Merge pull request #8208 from atom/ns-defer-selection-merge
Defer selection merge until dragging completes
2015-08-04 12:11:19 -06:00
Nathan Sobo
db72ce8362 Defer merging likewise gutter selections until mouseup 2015-08-04 11:29:08 -06:00
Ivan Zuzak
f24590fb10 Clarify docs on Marker.copy to cover selection case 2015-08-04 16:35:21 +02:00
Luke Pommersheim
2655513673 CR: copyOnlySelectedText only works on selected text, no matter of cursor position 2015-08-04 10:30:59 +02:00