-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed selection bug and added source mark to copy lines (#384)
* Fix so clone up moves selection * Added source mark to copy lines * Added tests for clone linesg * Updated tests
- Loading branch information
1 parent
0712ee8
commit 9df55b6
Showing
9 changed files
with
230 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: plaintext | ||
command: | ||
version: 1 | ||
spokenForm: clone harp | ||
action: insertCopyAfter | ||
targets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
initialState: | ||
documentContents: hello | ||
selections: | ||
- anchor: {line: 0, character: 5} | ||
active: {line: 0, character: 5} | ||
marks: | ||
default.h: | ||
start: {line: 0, character: 0} | ||
end: {line: 0, character: 5} | ||
finalState: | ||
documentContents: |- | ||
hello | ||
hello | ||
selections: | ||
- anchor: {line: 1, character: 5} | ||
active: {line: 1, character: 5} | ||
thatMark: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 5} | ||
sourceMark: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 5} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: plaintext | ||
command: | ||
version: 1 | ||
spokenForm: clone harp | ||
action: insertCopyAfter | ||
targets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
initialState: | ||
documentContents: hello | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: | ||
default.h: | ||
start: {line: 0, character: 0} | ||
end: {line: 0, character: 5} | ||
finalState: | ||
documentContents: |- | ||
hello | ||
hello | ||
selections: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 0} | ||
thatMark: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 5} | ||
sourceMark: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 5} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: plaintext | ||
command: | ||
version: 1 | ||
spokenForm: clone up harp | ||
action: insertCopyBefore | ||
targets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
initialState: | ||
documentContents: hello | ||
selections: | ||
- anchor: {line: 0, character: 5} | ||
active: {line: 0, character: 5} | ||
marks: | ||
default.h: | ||
start: {line: 0, character: 0} | ||
end: {line: 0, character: 5} | ||
finalState: | ||
documentContents: |- | ||
hello | ||
hello | ||
selections: | ||
- anchor: {line: 0, character: 5} | ||
active: {line: 0, character: 5} | ||
thatMark: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 5} | ||
sourceMark: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 5} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: plaintext | ||
command: | ||
version: 1 | ||
spokenForm: clone up harp | ||
action: insertCopyBefore | ||
targets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
initialState: | ||
documentContents: hello | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: | ||
default.h: | ||
start: {line: 0, character: 0} | ||
end: {line: 0, character: 5} | ||
finalState: | ||
documentContents: |- | ||
hello | ||
hello | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
thatMark: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 5} | ||
sourceMark: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 5} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: plaintext | ||
command: | ||
version: 1 | ||
spokenForm: clone up vest | ||
action: insertCopyBefore | ||
targets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: v} | ||
initialState: | ||
documentContents: " const value = \"Hello world\";" | ||
selections: | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} | ||
marks: | ||
default.v: | ||
start: {line: 0, character: 10} | ||
end: {line: 0, character: 15} | ||
finalState: | ||
documentContents: |2- | ||
const value = "Hello world"; | ||
const value = "Hello world"; | ||
selections: | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} | ||
thatMark: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 32} | ||
sourceMark: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 32} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: v}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
languageId: plaintext | ||
command: | ||
version: 1 | ||
spokenForm: clone vest | ||
action: insertCopyAfter | ||
targets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: v} | ||
initialState: | ||
documentContents: " const value = \"Hello world\";" | ||
selections: | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} | ||
marks: | ||
default.v: | ||
start: {line: 0, character: 10} | ||
end: {line: 0, character: 15} | ||
finalState: | ||
documentContents: |2- | ||
const value = "Hello world"; | ||
const value = "Hello world"; | ||
selections: | ||
- anchor: {line: 1, character: 15} | ||
active: {line: 1, character: 15} | ||
thatMark: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 32} | ||
sourceMark: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 32} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: v}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.