Commit Graph

6159 Commits

Author SHA1 Message Date
Nathan Sobo
69da0bb2aa Add alt-meta-left and alt-meta-right bindings for tab switching
These are common bindings for switching tabs. Before we used them to
split views, but this is a more expected behavior.
2013-02-15 10:39:15 -07:00
Nathan Sobo
a300337557 Change split-view bindings to avoid confusion w/ tab-switching
Now you can use the vim-style `ctrl-w *` bindings, or use `ctrl-|` and
`ctrl--`, which resemble horizontal and vertical splits as characters.
2013-02-15 10:39:15 -07:00
Justin Palmer
0ccf81d2ef style expand/collapse in atom-ui-light 2013-02-15 09:23:30 -08:00
Justin Palmer
e18ed0c96c move preview count position to static directory 2013-02-15 09:12:21 -08:00
Kevin Sawicki
ef4449d1ed Don't store package state in command-panel package
The package loader now only calls serialize if activate
has been called and reuses the previous state if the package
is never activated.
2013-02-14 17:30:45 -08:00
Kevin Sawicki & Nathan Sobo
992fbaafbc Recycle bracket highlight views 2013-02-14 18:08:26 -07:00
Corey Johnson
35ff2744ac Attach the tree view if the project has no serialized state 2013-02-14 16:40:24 -08:00
Corey Johnson
e7a8e4e3c4 Add atom.update and atom.getUpdateStatus 2013-02-14 16:40:24 -08:00
Corey Johnson
16d8c52624 💄 2013-02-14 16:40:24 -08:00
Kevin Sawicki & Nathan Sobo
3bd98ff182 Calculate pixel position of both bracket highlights before adding them
Before, we were causing a layout to occur twice because we needed to
read the DOM for the pixel position of the second highlight view after
invalidating the DOM when adding the first highlight view.
2013-02-14 17:30:08 -07:00
Kevin Sawicki & Nathan Sobo
c3e595b040 Switch to new flexbox spec to improve redraw performance
With the old flexbox, whenever we updated the status bar, other flex
items in the pane (such as the tabs and the *entire* editor) were
getting repainted, which was taking 10x longer than it needed to. This
newer flexbox spec seems to be implemented in a more performant way.
2013-02-14 17:07:46 -07:00
Jon Rohan
59a8bfd8df Making shure that invisibles always look the same. fixes #279 2013-02-14 14:58:50 -08:00
Kevin Sawicki
1f9e5aea06 Clear mini editor when detaching 2013-02-14 14:36:27 -08:00
Corey Johnson
56213872b2 Fix 💩 I shouldn't have checked in 2013-02-14 13:23:45 -08:00
Kevin Sawicki
77e9377865 Close command panel on core:cancel event 2013-02-14 12:49:33 -08:00
Nathan Sobo
2f71ee9a0d Prevent clicks on a focused editor from unfocusing its hidden input
This closes #233. When an editor is focused, what's *actually* focused
is a hidden input element inside the editor. So clicking on a focused
editor was temporarily stealing focus away from the hidden input, and
then moving it back to the hidden input (which the editor always does
when it is focused). Returning false from the mousedown handler when
the editor is already focused prevents this bouncing of focus and
prevents the fuzzy finder from hiding when you click its editor.
2013-02-14 13:38:46 -07:00
Kevin Sawicki
58dbcc9ddc Un-f spec in atom-spec.coffee 2013-02-14 12:33:33 -08:00
Corey Johnson
da98addf80 better spec toggle 2013-02-14 12:31:31 -08:00
Kevin Sawicki
aa69452552 Focus rootView directlly instead of by selector 2013-02-14 12:31:12 -08:00
Kevin Sawicki
15c02014f7 💄 2013-02-14 12:27:46 -08:00
Kevin Sawicki
363a1bbbab Remove unused require 2013-02-14 12:27:39 -08:00
Corey Johnson & Nathan Sobo
da59459197 Autoscroll the last cursor when it inserts text
Normally, we don't autoscroll to a cursor when the buffer changes. But
this is a change caused by the cursor itself, so it makes sense to
keep it in view.
2013-02-14 13:21:39 -07:00
Kevin Sawicki
1fed183a8c Perform whitespace check after scopes check 2013-02-14 11:48:03 -08:00
Kevin Sawicki
e0556d85af Advance over tokens that are only whitespace 2013-02-14 11:47:07 -08:00
Corey Johnson
a2bcea7d06 rake nof ignores package-generator spec templates 2013-02-14 11:37:55 -08:00
Kevin Sawicki
21a56b991c Move scroll logic to individual views 2013-02-14 11:25:08 -08:00
Corey Johnson & Nathan Sobo
52cbf5e367 Correctly translate clicks to screen positions w/ var-width fonts
Closes #267
2013-02-14 12:04:18 -07:00
Kevin Sawicki
d5759752b5 Remove unneeded rootView variable 2013-02-14 11:00:45 -08:00
Kevin Sawicki
1ab0db11bd Support folding multi-line comments 2013-02-14 10:57:39 -08:00
Kevin Sawicki
eb179af0d4 Merge pull request #271 from github/super-command-panel
Super command panel
2013-02-14 10:13:40 -08:00
Justin Palmer
f3b41e4321 command panel styles for atom-light-ui 2013-02-14 09:56:31 -08:00
Kevin Sawicki
bcaa1a6819 Allow preview of editor if grammar is source.gfm
Previously only markdow file extensions were considered
but any editor whose grammar is GitHub Markdow should have
preview enabled.

Closes #277
2013-02-14 09:49:03 -08:00
Kevin Sawicki
ea34ad0608 Expand/collapse result with ctrl-[] 2013-02-14 09:30:57 -08:00
Kevin Sawicki
b8b989a94c Use editor.preferredLineLength as default column
This config value will be used when no custom column
exists for the current path.
2013-02-14 09:14:05 -08:00
Kevin Sawicki
43d46f0705 Load all .css files when theme has no package file
Closes #263
2013-02-14 09:04:32 -08:00
Kevin Sawicki
48407da6aa Subscribe to preview list events 2013-02-13 23:05:21 -08:00
Kevin Sawicki
fd2edb1d4d Only select last operation if path is expanded 2013-02-13 23:02:02 -08:00
Kevin Sawicki
5ec2fb6866 Update specs for new path view layout 2013-02-13 22:52:28 -08:00
Kevin Sawicki
122e0e5f91 Use pathDetails outlet for mousedown event 2013-02-13 22:49:34 -08:00
Kevin Sawicki
156d96a2e7 Toggle expansion on core:confirm event 2013-02-13 22:47:01 -08:00
Kevin Sawicki
df227cbfc8 Disable selection in preview count and buttons 2013-02-13 22:36:00 -08:00
Kevin Sawicki
528050adbb Remove unneeded rootView ivar 2013-02-13 22:33:56 -08:00
Kevin Sawicki
cc10ae4bdb Only set selected background on path details
Previously the background of the entire li was
changed when selected.
2013-02-13 22:33:29 -08:00
Kevin Sawicki
2d4ea98c0a Always retain selection on path node when collapsing 2013-02-13 22:09:13 -08:00
Kevin Sawicki
59a613de73 Focus preview list after expanding/collapsing all 2013-02-13 22:08:30 -08:00
Kevin Sawicki
b626ce91a9 Don't select operations if path is collapsed 2013-02-13 22:06:00 -08:00
Kevin Sawicki
1cc6429dc7 Select path when collapsed via command 2013-02-13 21:57:42 -08:00
Kevin Sawicki
20d7956cc1 Expand result with right arrow key 2013-02-13 21:49:48 -08:00
Kevin Sawicki
4088d33dc9 Allow paths to be selected
This will allow them to be navigated to with the
keyboard and collapsed or expanded.
2013-02-13 21:42:41 -08:00
Kevin Sawicki
61481fc1d8 Execute operation from OperationView 2013-02-13 19:20:43 -08:00