Repository navigation
Release v0.1.2: line keys and paste in code blocks - #112
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Code block fixes, released as v0.1.2.
Ctrl+Lselected the whole block. It now selects the caret's line, and each next press adds a line.<pre>, which showed as a small box inside the block. Paste into code now inserts plain text.Ctrl+Enteradds an empty code line instead of a body line that split the block.Why
A code block keeps its lines inside one
<pre>, split by<br>or\n, and the line keys treat each<pre>as one line. Before a line key runs,splitCodeLinesnow splits the<pre>under the selection into one<pre>per line, the run of<pre>that a code block already is. The selection is put back on the same text.Checks
node --test tests/*.test.js: 247 pass, including new tests forsplitCodeLines,pointInCodeLinesandinsertLinein code.NoteEditor: Ctrl+L twice, copy and paste in code, duplicate, insert, indent, move and cut.After merge: tag
v0.1.2and follow RELEASING.md from step 4.