Commit Graph

12724 Commits

Author SHA1 Message Date
Kevin Sawicki & Nathan Sobo
94d1edcc06 Add EditSession.selectMarker 2013-02-05 15:54:20 -07:00
Kevin Sawicki & Nathan Sobo
c893f0c338 Add Buffer.markersForPosition and coerce marker ids to strings 2013-02-05 15:50:54 -07:00
Kevin Sawicki & Nathan Sobo
240e893d33 Don't emit a cursor-moved event when only the tail of the marker moves 2013-02-05 15:19:10 -07:00
Kevin Sawicki
3e84e9886c Break out event handler setup into separate method
This mirrors the keymap setup method and allows specs
to reattach handlers after calling shutdown()
2013-02-05 13:17:53 -08:00
Kevin Sawicki
17825edf66 Use off() instead of unbind()
unbind() is so pre-jQuery 1.7
2013-02-05 13:13:01 -08:00
Nathan Sobo
1d30605f7f Convert selection and cursor fully over to markers. 2013-02-05 13:39:00 -07:00
Kevin Sawicki
8de45ccc21 Bind meta-D to duplicate line below
Refs #134
2013-02-05 12:16:50 -08:00
Kevin Sawicki
ad3c18077c Compare against EOF position when clipping
Previously the column could potentially be set to
zero since a Math.min comparison was used for the
length of an already adjusted row.
2013-02-05 12:08:17 -08:00
Kevin Sawicki
7ecafb1594 Don't include tag prefix and suffix
Just include the tag name in the symbols view
instead of the lengthy namespace prefix and signature
suffix.

Refs #134
2013-02-05 10:04:37 -08:00
Kevin Sawicki
1b2c7faed9 Bind ctrl-meta-f to toggle full screen
Refs #134
2013-02-05 09:36:38 -08:00
Kevin Sawicki
9011d62351 Use octicon for README files 2013-02-05 09:17:47 -08:00
Justin Palmer
dd7835faf4 merge dev, fix conflicts 2013-02-05 08:18:59 -08:00
Kevin Sawicki
651d305f76 Add package namespace to command registration 2013-02-04 20:56:25 -08:00
Kevin Sawicki
39e39afa1b Bind ctrl-j to jump to matching bracket 2013-02-04 20:38:50 -08:00
Nathan Sobo
afe0a6570a Reduce observation to single observeMarker method on display buffer
It will call the observer callbacks with the buffer and screen positions
of the head and tell each time any of these values is changed.
2013-02-04 21:24:06 -07:00
Nathan Sobo
58450d6a65 Give Buffer only a single observeMarker method
It will fire the callback whenever the marker's head or tail position
changes, and it's up to the subscriber to use the information how they
want to.
2013-02-04 20:35:30 -07:00
Nathan Sobo
852b4c2f8a Merge remote-tracking branch 'origin/dev' into markers 2013-02-04 20:04:01 -07:00
Kevin Sawicki
b30fae7a68 Remove event handlers when editor is removed 2013-02-04 18:24:54 -08:00
Kevin Sawicki
0270ba3e1c Add bracket matcher that highlights pair
(), {}, and [] pairs are now highlighted when
after or before the cursor
2013-02-04 18:09:20 -08:00
Justin Palmer
022b5fb88c use is-focused for the editor because it needs it's own state independent of the window state 2013-02-04 16:42:46 -08:00
Justin Palmer
f8855ef2e3 the editor has it's own blurred state independent of the window 2013-02-04 16:20:07 -08:00
Justin Palmer
53bf6f5341 tag blurred state instead of focused state 2013-02-04 15:55:14 -08:00
Justin Palmer
7a2a02dacf Merge pull request #227 from github/cut-dat-fat
Reusable styles for common UI elements
2013-02-04 15:39:22 -08:00
Kevin Sawicki
278b8c3df1 Trigger move-up to reset top scroll to 0 2013-02-04 15:26:46 -08:00
Kevin Sawicki
e9747a8f9c Use outer height of item scrolling to item 2013-02-04 14:15:12 -08:00
Kevin Sawicki
25b75b6659 Use fs.resolve instead of fs.resolveExtension 2013-02-04 12:51:04 -08:00
Kevin Sawicki
bd88a0de15 Support CSON config file
Use ~/.atom/config.cson as the new default when no
config file exists.

~/.atom/config.json is still the default if they both
exist.
2013-02-04 12:38:00 -08:00
Justin Palmer
5b9957e85f fix autocomplete and specs 2013-02-04 12:16:37 -08:00
Justin Palmer
d4a080a022 more fixes to symbols spec 2013-02-04 11:53:04 -08:00
Kevin Sawicki
cd07ec841d Add more window globals and shims in task shell
This allows jQuery to be successfully loaded from a web worker
since it does not have a document or window object by default.

Previously it would log about missing methods and properties.

Closes #228
2013-02-04 11:43:58 -08:00
Justin Palmer
c62e0dfa4b fix symbols view spec 2013-02-04 11:41:50 -08:00
Justin Palmer
cf9ed92072 fix gists specs 2013-02-04 11:38:31 -08:00
Justin Palmer
09efd15122 fix command pallete specs to reflect new classes 2013-02-04 11:34:27 -08:00
Justin Palmer
4845135375 tweak directory look in dark theme, add back the dash 2013-02-04 11:23:07 -08:00
Nathan Sobo
ead93d0f39 Rename to DisplayBuffer.observeMarkerHeadPosition
When you observe, you get callbacks whenever the screen or buffer
position changes, and you get the new and old position in both 
coordinate types.
2013-02-04 11:32:47 -07:00
Nathan Sobo
44e48d42ea Add Buffer.observeMarkerRange 2013-02-04 11:27:39 -07:00
Justin Palmer
8474caa8d8 move generic status bar styles to main bundle, kill dupe cod 2013-02-04 10:03:52 -08:00
Justin Palmer
3fcb7888cc share fuzzy-finder styles between dark and light 2013-02-04 09:39:55 -08:00
Kevin Sawicki
0bb0863b61 Use _.indexOf instead of _.contains
_.indexOf supports a isSorted flag which can be used
since the extension arrays are pre-sorted.
2013-02-04 09:08:00 -08:00
Kevin Sawicki
84feaf369d Format undefined array values as null 2013-02-04 09:08:00 -08:00
Kevin Sawicki
fd6795e748 Use parameter instead of ivar 2013-02-04 09:08:00 -08:00
Kevin Sawicki
299a45da57 Add specs for tab title attribute 2013-02-04 09:07:59 -08:00
Justin Palmer
e796616921 merge dev, fix conflicts 2013-02-04 09:00:09 -08:00
Justin Palmer
7d00623313 move generic tab styles to main bundle 2013-02-04 08:52:39 -08:00
Justin Palmer
1affefb196 move generic command-panel styles to main bundle 2013-02-04 08:36:27 -08:00
Justin Palmer
4bfd73966d move generic tree-view styles to the main bundle 2013-02-04 08:28:58 -08:00
Justin Palmer
ffa3518cb3 kill grammar-view.css, uses overlay and select list defaults 2013-02-04 08:14:52 -08:00
Justin Palmer
81fbb3bc93 kill clear-float 2013-02-04 08:09:47 -08:00
Justin Palmer
05b1a1a64d move notification.css to main bundle 2013-02-03 14:39:09 -08:00
Justin Palmer
44d4efdc10 move common overlay and popover css to static directory 2013-02-03 14:33:54 -08:00