Commit Graph

556 Commits

Author SHA1 Message Date
Ian Olsen
f726dcc81b Merge pull request #12922 from stereobooster/10474-prompt-to-save-unsaved-buffer
Fix for #10474
2016-10-26 16:35:43 -07:00
Max Brunsfeld
5db4c8dffb Merge branch 'master' into mb-defer-work-when-opening-files 2016-10-14 12:20:41 -07:00
Max Brunsfeld
c870d1bbe9 Merge branch 'master' into mb-defer-work-when-opening-files 2016-10-12 11:56:27 -07:00
Max Brunsfeld
8d6bc5be48 Remove unnecessary guard in screenLineForScreenRow 2016-10-12 11:50:53 -07:00
Antonio Scandurra
00f4c7b282 Use TokenizedBuffer.prototype.tokenizedLineForRow conservatively
Since this method will now construct a placeholder line, we want to use
it only where necessary to keep memory footprint to a minimum.
2016-10-12 09:04:41 +02:00
Max Brunsfeld
d20372a35f Start on removing placeholder lines in TokenizedBuffer 2016-10-12 09:04:41 +02:00
Max Brunsfeld
e9c932f90d Start work towards doing display layer computations in idle callbacks 2016-10-11 22:15:08 -07:00
stereobooster
940f92bfd3 Apply CR 2016-10-11 01:19:55 +03:00
stereobooster
c6a89a4abe Fix for #10474 2016-10-11 01:19:55 +03:00
Antonio Scandurra
dbd7817823 Make TextEditor.prototype.scrollPastEnd false by default 2016-10-10 09:26:52 +02:00
Max Brunsfeld
1e3443e6c1 Avoid forcing computation of all screen lines when opening a file 2016-10-08 11:17:53 -07:00
Antonio Scandurra
18ddcf902b Statically assign a clipboard instance to the TextEditor class 2016-10-07 18:21:09 +02:00
Max Brunsfeld
d79690e2d5 Merge pull request #12823 from atom/mb-as-guard-tab-length
Guard against null tab length value
2016-09-29 14:21:54 -07:00
Max Brunsfeld
28975fba81 Merge pull request #12780 from Ingramz/update-coffee-script
Update coffee-script to 1.11.0
2016-09-29 13:53:02 -07:00
Max Brunsfeld
556d79b544 Guard against null tab length value
Signed-off-by: Antonio Scandurra <as-cii@github.com>
2016-09-29 12:01:39 -07:00
Philip Schatz
a7d30abdcf 🐛 documentation for TextEditor::indentLevelForLine
[ci skip]
2016-09-29 14:47:29 -04:00
Philip Schatz
3d22829104 🐛 documentation for TextEditor::indentationForBufferRow() 2016-09-29 14:23:17 -04:00
Indrek Ardel
f7bd0d451f Update coffee-script to 1.11.0 2016-09-26 17:24:49 +03:00
Lukas Geiger
498a56a603 Tildify path in title bar
This will use ~/ for the path to the home directory
2016-09-22 11:14:03 +02:00
Nathan Sobo
579e6b23cf Merge pull request #12426 from oggy/marker-count
Delegate TextEditor.getMarkerCount to default marker layer.
2016-08-20 14:19:44 -05:00
Antonio Scandurra
c667c77ff3 Copy auto{Width,Height} when copying an editor 2016-08-19 13:58:16 +02:00
Antonio Scandurra
1f4cd6e00d Merge branch 'master' into ns-fix-editor-auto-height
# Conflicts:
#	src/text-editor.coffee
2016-08-19 13:27:26 +02:00
Max Brunsfeld
26c9e5ee78 Set editor's tokenized buffer's tab length on its display layer when deserializing 2016-08-18 17:06:26 -07:00
Nathan Sobo
a264eaa18a Serialize TextEditor autoHeight and autoWidth properties 2016-08-18 14:03:44 -06:00
Max Brunsfeld
90b699f5cc Remove some text editor ivars that are redundant w/ display layer properties 2016-08-18 10:41:11 -07:00
Max Brunsfeld
bf839ab15e Reset display layer upon deserializing a text editor 2016-08-17 16:57:35 -07:00
Nathan Sobo
6a0b4d8fc0 Default autoWidth in getter method to match autoHeight 2016-08-17 15:52:51 -06:00
Nathan Sobo
13c00995d4 Return default value of true from TextEditor.getAutoHeight
When we need to check for unassigned in the deprecated code path, we
can just read the instance variable directly to avoid getting the
deafult.

Signed-off-by: Antonio Scandurra <as-cii@github.com>
2016-08-17 15:52:51 -06:00
Nathan Sobo
106621e161 Deprecate automatic assignment of autoHeight for text editors
Previously, we attempted to automatically determine whether the editor’s
height should be based on the editor’s content or the height of its
container. Unfortunately, DOM APIs are insufficient to make this
determination in a complete way, leading to unpredictable behavior.

This PR deprecates the automatic determination of this behavior. By
default, editors base their height on their content. If an editor has
an explicit height assigned via its style or is positioned absolute with
an explicit top and bottom, we disable the content-based autoHeight and
log a deprecation warning telling the user to assign autoHeight
explicitly.

This paves the way to add an autoWidth setting, which will default to
false.
2016-08-17 15:52:51 -06:00
Antonio Scandurra
683bf37907 Add autoWidth to TextEditor 2016-08-17 16:14:36 +02:00
Max Brunsfeld
c5a6e9c697 Merge branch 'master' into ns-mb-detangle-editor 2016-08-16 09:11:11 -07:00
Max Brunsfeld
4b0183d074 Remove extraneous TextEditor setter methods 2016-08-15 16:45:10 -07:00
Max Brunsfeld
0d099d2fd5 Serialize all TextEditor parameters needed for the DisplayLayer 2016-08-15 15:51:22 -07:00
George Ogata
dfbe2232a7 Delegate TextEditor.getMarkerCount to default marker layer. 2016-08-15 01:49:06 -04:00
Max Brunsfeld
bf644d1a6b Remove some unnecessary TextEditor accessor methods 2016-08-12 14:31:07 -07:00
Max Brunsfeld
a11a235ef1 Don't reset display layer twice in TextEditor constructor 2016-08-12 13:36:50 -07:00
Max Brunsfeld
65f385c0a4 Don't reset editor's display layer when setting identical invisibles 2016-08-12 12:21:03 -07:00
Max Brunsfeld
0a1834079f Rename getSoftWrapIndentLength -> getSoftWrapHangingIndentLength 2016-08-11 16:38:34 -07:00
Max Brunsfeld
684952458f Remove new TextEditor setters; just use update 2016-08-11 15:34:54 -07:00
Max Brunsfeld
fc16eeadca Use TextEditor::update in TextEditorRegistry 2016-08-11 14:09:17 -07:00
Max Brunsfeld
ef94a940a9 Make the TextEditor setters call update() 2016-08-11 13:52:57 -07:00
Max Brunsfeld
fb6b463818 Remove duplicate scrollPastEnd setter and getter 2016-08-11 12:14:11 -07:00
Max Brunsfeld
0c7750f560 🔥 ignoreInvisibles parameter to TextEditor
Now that the TextEditor doesn't depend on atom.config, showInvisibles
can always be configured independently of the config
2016-08-11 11:41:11 -07:00
Max Brunsfeld
11463ef00b Merge remote-tracking branch 'origin/as-introduce-editor-update' into ns-mb-detangle-editor 2016-08-11 11:36:48 -07:00
Antonio Scandurra
61a909b06e Remove config option editor.backUpBeforeSaving
After shipping #11828 Atom always creates a backup file in the
`~/.atom/recovery` directory, trying to restore it automatically via the
main process in case there is a hard crash on the renderer process. This
approach should be resilient enough to allow us to delete this config
option altogether.

We can still keep it for a while in text-buffer, in case we need to use
it again at some point, but it's probably fine to remove it from there
too at some point in the future.
2016-08-11 09:23:43 +02:00
Max Brunsfeld
09b1d402d5 📝 Fix typo in setAutoIndent{,OnPaste} docs 2016-08-10 13:28:06 -07:00
Max Brunsfeld
b97f317cd1 Remove fallbacks for scoped properties in TextEditor
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-08-09 15:20:00 -07:00
Max Brunsfeld
2c506840a5 📝 Document new editor configuration methods 2016-08-09 11:14:12 -07:00
Max Brunsfeld
ee2e18737e Fix maintenance of grammars for copied editors 2016-08-08 11:17:30 -07:00
Max Brunsfeld
1f34a8950a Don't use config for softWrapHangingIndent 2016-08-05 09:53:22 -07:00