Commit Graph

116 Commits

Author SHA1 Message Date
Antonio Scandurra
cb4c27757a 📝 TextEditorElement::invalidateBlockDecorationDimensions 2015-12-04 15:35:53 +01:00
Antonio Scandurra
937116a280 Render only visible and yet-to-be-measured block decorations 2015-12-03 11:26:45 +01:00
Nathan Sobo
9714f2e729 Emit decoration events synchronously in legacy spec environment
This is needed to keep a bunch of package tests passing that expect
synchronous decoration updates.
2015-11-09 00:35:31 -07:00
Antonio Scandurra
40e3b08a8c Add TextEditorElement::getMaxScrollTop 2015-10-20 08:36:27 +02:00
Max Brunsfeld
778023c78b Make factory for StylesElements on atom.styles 2015-10-09 13:46:32 -07:00
Antonio Scandurra
c3d85f85a4 🔥 Remove unused LOC 2015-10-07 15:25:06 -05:00
Antonio Scandurra
534f038631 Don't use atom globals in TokenIterator 2015-10-07 15:25:02 -05:00
Antonio Scandurra
2532a9cd59 Don't use atom globals in StylesElement 2015-10-07 15:25:02 -05:00
Antonio Scandurra
112ee01bd9 Don't use atom globals in TextEditorElement
...except when the element is instantiated via HTML
2015-10-07 15:25:01 -05:00
Nathan Sobo
51abab930d Parameterize config on editor instead of using global atom.config 2015-10-07 15:24:58 -05:00
Nathan Sobo
e0d426b817 Register deserializers, view providers, and commands in Atom constructor
Previously, these registrations were scattered all over the codebase and
required that `global.atom` be defined, which creating weird ordering
issues. Registering them all from the global makes the relationships
clearer and means we don’t have to assign a global to set up a fully-
functional environment.
2015-10-07 15:24:52 -05:00
Antonio Scandurra
c1ef87ac8b 🎨 2015-09-30 10:35:19 +02:00
Antonio Scandurra
5cb63c8b90 Add feature flag to detect logical display buffer 2015-09-30 10:16:47 +02:00
Antonio Scandurra
5cfc5b67ae Allow listening for TextEditorElement events before attaching it
Fixes atom/wrap-guide#43

/cc: @maxbrunsfeld
2015-09-30 09:09:33 +02:00
Antonio Scandurra
3ad9bb3d21 Fix typo on TextEditorElement ::getWidth/::getHeight 2015-09-28 14:14:23 +02:00
Antonio Scandurra
7316eb4d52 🔥 Drop deprecated methods from the public API 2015-09-25 17:27:14 +02:00
Antonio Scandurra
051baebd9c Shim ::setHeight and ::getHeight to TextEditorElement 2015-09-25 11:15:41 +02:00
Antonio Scandurra
33a67ad3c9 Shim ::setWidth and ::getWidth to TextEditorElement 2015-09-25 11:05:41 +02:00
Antonio Scandurra
19ca87f79f 💚 Fix specs 2015-09-24 11:27:54 +02:00
Antonio Scandurra
535a9da946 wip 2015-09-24 11:21:26 +02:00
Antonio Scandurra
3236c8f0f8 Let's start with deprecations! 2015-09-24 10:07:38 +02:00
Antonio Scandurra
91ef57ed29 Merge branch 'master' into as-display-buffer-logical-coordinates
# Conflicts:
#	src/display-buffer.coffee
2015-09-23 18:46:16 +02:00
Antonio Scandurra
36b0aa0126 🔥 2015-09-23 18:45:32 +02:00
Antonio Scandurra
87c7a0ae30 💚 Fix some TextEditorComponent specs 2015-09-23 16:25:50 +02:00
Antonio Scandurra
4136c195c9 Port .scrollToCursorPosition() specs 2015-09-23 15:34:42 +02:00
Antonio Scandurra
7f3160eba6 Port .selectLinesContainingCursors() specs 2015-09-23 15:34:42 +02:00
Antonio Scandurra
57a006d19b Start porting scroll-related specs 2015-09-23 15:34:41 +02:00
Antonio Scandurra
ddd7aacd9d 💚 Fix TextEditorComponent specs 2015-09-23 15:34:22 +02:00
Nathan Sobo
29b9c5d3c0 🔥 Remove grim require from TextEditorElement 2015-09-22 10:37:08 -06:00
Ivan Žužak
abf6d40cc4 Merge pull request #8828 from atom/iz-cut-to-end-of-buffer-line
Add command for cutting text to the end of the cursor's buffer line
2015-09-20 10:45:45 +02:00
Nathan Sobo
2a79eaf7c2 Remove space-pen require from text-editor-element 2015-09-18 20:48:48 -06:00
Nathan Sobo
c7ecad5576 Remove EditorView 2015-09-18 20:48:45 -06:00
Ivan Zuzak
7e1a295f07 Add method for cutting text to the end of the buffer line 2015-09-17 19:34:53 +02:00
Antonio Scandurra
63a282750a 📝 Fix typo 2015-09-17 17:17:14 +02:00
Antonio Scandurra
3575928cce Move continuous reflow setting into TextEditorElement 2015-09-17 17:14:00 +02:00
Luke Pommersheim
f5c8b04337 Add function that only copies selected text unless the cursor is at the beginning of the line. 2015-08-04 10:30:59 +02:00
Joe Fitzgerald
b3b046aa66 Add activationHooks To package.json
- Trigger the `{grammar-package-name}:grammar-used` hook when grammar is set for tokenized-buffer
2015-07-09 02:33:17 -04:00
Nathan Sobo
1dd1770b1a Assert the liveness of editor model when attaching editor view 2015-07-09 00:13:05 -05:00
Ben Ogle
5d42b27f5f Merge pull request #7411 from deprint/multiline-mini-editor
Mini editor with TextEditor::setMini
2015-07-06 13:56:20 -07:00
Nathan Sobo
83bddaf34e Merge branch 'master' into add-subword-cursors-4
Conflicts:
	spec/text-editor-spec.coffee
2015-06-30 15:43:33 -05:00
Fabian Stiewitz
19315390cf TextEditorElement: Add callback for TextEditor::onDidChangeMini 2015-06-26 11:45:38 +02:00
Antonio Scandurra
a0ce1e6d01 Narrow scope and rename flag 2015-05-27 12:59:36 +02:00
Antonio Scandurra
299ee5dbf3 Merge branch 'master' into as-tiled-rendering
# Conflicts:
#	spec/text-editor-presenter-spec.coffee
#	src/lines-component.coffee
#	src/text-editor-presenter.coffee
2015-05-21 10:46:52 +02:00
Antonio Scandurra
752dbf2c6e Manually config tileSize
Dealing with a manually entered `tileSize` is actually easier to reason about,
therefore we no longer calculate it based on `tileCount.`
2015-05-21 09:59:58 +02:00
Nathan Sobo
d75d202d33 Remove defunct ‘editor:move-to-previous-word’ command
The method this command calls was removed a very long time ago. Use
‘editor:move-to-previous-word-boundary’ instead.

Fixes atom/command-palette#41
2015-05-20 19:47:30 +02:00
CaptSaltyJack
a8283c3c9b Added delete-to-next/previous-word-boundary
This is better behavior for alt-del/backspace operations, is less
"greedy" and doesn't eat up excess characters.
Also set default key mappings to these, feel free to trash my changes
to keymaps/darwin.cson. Though I do feel this should be default
behavior, personally.
2015-04-29 16:31:07 -07:00
Jess Lin
79b460a0ca [Gutter] Add ::getDomNode method to all 'components' 2015-04-22 07:28:59 -07:00
Jess Lin
fccc9ebee4 [Gutter] Rename current references to 'Gutter' -> 'LineNumberGutter' 2015-04-22 07:28:56 -07:00
Michael Bolin
bf9999d07a core:select-up/down should work in mini editor as well as main editor.
Fixes #6445.
2015-04-21 12:50:20 -07:00
Kevin Sawicki
7d592c8b78 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00