Commit Graph

202 Commits

Author SHA1 Message Date
Andreas Arvidsson
f2466d82f9
Delimiter selector updated (#347)
* Reworked leading and trailing delimiter selectors

* Added language specific play/test files

* Exclude data folder from typescript compilation

* Change or line endings to LF

* Refactored language play files

* Mood files into new playground folder

* Added more tests

* Updated delimiter selector to remove white space
2021-12-01 16:00:25 +01:00
Andreas Arvidsson
d3a91b9cfc
Added action remove selection (#348)
* Added action remove selection

* Renamed remove selection to deselectgit status

* Renamed and clean up remove selection

* Update src/actions/Deselect.ts

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>

* Enabled deselection of empty selections

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-01 14:25:11 +01:00
Pokey Rule
a5593ed997
Add wrapper to avoid multiple done calls (#350)
* Avoid multiple calls to done during a failed test

* Remove problematic test cases
2021-12-01 14:06:10 +01:00
Pokey Rule
01a8a9eb26
Increase number of test retries (#349)
Workaround to improve CI stability
2021-12-01 12:23:44 +01:00
Pokey Rule
b07bee49a7
Fix spinning unmatched delimiter (#343) 2021-11-29 17:53:16 +01:00
Andreas Arvidsson
1de4725842
Join sources on single destination (#339)
* Join sources on single destination

* Added additional tests with different scope types

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-11-29 16:13:56 +01:00
Andreas Arvidsson
0b26f42ecb
Added specific typescript type selector (#342)
* Added specific typescript type selector

* Added tests of removing types

* Added remove interface test

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-11-29 15:11:10 +01:00
Andreas Arvidsson
a263fc5535
Removed additional highlight before scroll (#337)
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-11-29 14:17:38 +01:00
Andreas Arvidsson
5cdb954fa5
Updated leading and trailing delimiters for before and after positions (#340)
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-11-29 13:47:59 +01:00
Andreas Arvidsson
de7dfef5e7
Added conditions scope type (#341) 2021-11-29 11:46:17 +00:00
Pokey Rule
7639181d4a
Textual paired delimiters (#324)
* Initial working parse-tree based matcher

* Add some todos

* More progress

* More work

* More progress

* Make more progress

* More stuff

* Add comment

* Another new approach

* Initial working version when cursor is on a delimiter

* Fix for quad; more tests

* An attempt at internal ranges

* More work

* Add more tests

* New approach

* Many more tests

* Test utils

* Update test inputs

* Narrow to string contents

* New tests

* Revert "Update test inputs"

This reverts commit 05e458968e601a310a5f9ba09d201529b0f7302d.

* Fix transform

* Update test inputs

* Update test fixture outputs

* Add multiple cursor test

* Adds some chuck tests

* Fix java string content range

* Fix green double test

* Another attempt to fix green double test

* Add parse tree parity tests

* Update comment

* Use hack to fix java

* Move a bunch of stuff around

* Initial attempt at generalization

* Refactor in preparation for unification

* More refactoring

* Basically working unified approach

* Fix tests

* Fix incorrect test

* Fix quote delimiter side identification

* Add a bunch of string interpolation tests

* One more interpolation test

* One more string interpolation test

* Attempt to have list of delimiters at every occurrence

* Revert "Attempt to have list of delimiters at every occurrence"

This reverts commit 61d92ad273e622e0fa862e0f1b2fef89203f61ed.

* Working string interpolation variables

* Get string working

* Add bash script support

* Fixed tests

* Organize surrounding pair tests by language id

* Cleanup

* Cleanup and add lots of docstrings

* More docstring

* More cleanup

* More cleanup

* More docstrings

* Better handle large documents

* More dock strings

* More dock

* More cleanup

* More cleanup

* docstring

* Switch to new conventions

* More comments

* Fix bug with greater-than vs angle; add `$(` to round

* Initial working parity-based quote disambiguation

* Clean up inferDelimiterSide implementation

* Support forcing quote direction

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2021-11-27 14:38:14 +01:00
Andreas Arvidsson
514c72db37
Implementation of modulo line numbers (#333)
* Implementation of modulo line numbers

* Cleaned up line numbers

* replaced CRLF line endings

* Handled folded regions

* Handled folded regions

* Properly handle folded regions

* Normalise recorded test cases

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-11-27 14:29:56 +01:00
Andreas Arvidsson
1aa6ce31b3
Regex updates (#326) 2021-11-22 23:20:14 +00:00
Pokey Rule
a6bdb3a636
Dispose of decorations (#307)
* Dispose of decorations

* Ad more documentation

* Remove extra spaces
2021-11-08 09:14:18 +01:00
Pokey Rule
6543066292
Improved update selections (#306)
* Initial work

* Initial new vesrion

* Tweaks

* More work

* More implementation

* MOre stuff

* Some stuff

* More stuff

* Add get offsets for delete or replace

* Fixes

* Initial running version

* Big refactor

* Move to graph-based approach

* Initial working version

* Minor fixes

* Working selection updater for NavigationMap

* cleanup

* Fix CI

* Fix CI again

* Improve comments

* Cleanup

* Rename

* More renaming

* Navigation map disposal

* Add documentation to graph

* More documentation

* Add comments

* More comments

* Fix comment

* More doc updates

* More cleanup

* Doc string

* Improve bring; add a bunch of tests

* Delete useless test

* Delete another test

* Add navigation map tests

* Move marks to initial state

* Get tests working

* Remove transient transorm recorded tests

* Add docs for navigation map tests

* Add more tests

* Remove unnecessary test

* Add comments

* Be more robust to errors in the testcase recording

* Test multiple inserts in one atomic edit

* Take note of marks that we care about

* Transform test cases

* Reorder fixture fields
2021-11-07 08:36:11 +01:00
Pokey Rule
f014bb68df
Release 0.23.0 (#305)
* Release 0.23.0

* Bump version
2021-10-27 13:20:19 +01:00
Pokey Rule
1633ac1132
Snippet wrap (#296)
* Initial working version

* Almost done

* Change languageId

* Remove accidental file

* Attempt at complex version

* Initial version using integer placeholders

* Working using names

* Fix tests

* Fix tests

* Fix schema

* Fixes

* Fix python tests

* Cleanup yaml formatting

* Support snippet overrides

* Fix inference

* Cleanup

* CI fix

* Cleanup

* Remove yarn-error.log

* Update schema docs

* More dock

* Support user snippets dir

* use json schema ref

* Fix schema

* Wrap with snippet cleanup

* Cleanup

* More cleanup

* Change `/` to `.` for placeholder indication

* Reformat

* Fix comment

* Fix tests

* Add basic docs

* Change snippet format

* Fixes

* Add description field
2021-10-25 13:15:07 +01:00
Pokey Rule
2c4d2736e0
Stop using end of range as inference source (#301)
* One attempt

* More inference fixes
2021-10-19 08:47:42 +02:00
Pokey Rule
c5f0cb8138
Change mark inference (#300) 2021-10-18 17:25:10 +02:00
Pokey Rule
d31239dddf
Tweak svg files (#290)
* Tweak svg files

* Tweak

* More tweaks

* whatever

* whatever
2021-10-07 15:37:35 +02:00
Pokey Rule
7212b22c65
Release 0.22.0 (#289) 2021-10-06 11:33:05 +01:00
Pokey Rule
4cf1c47e79
Add new hats and preprocessing script (#277)
* Add new hats and preprocessing script

* Add `play`

* Padded svgs

* Initial stuff

* New icons

* More tweaks

* Adjust base size

* Center align

* Working version

* Style adjustments

* Remove aspect ratio code

* Tweak

* more tweaks

* Cleanup math

* New icons

* Newer icons

* Renames

* More icon tweaks

* Final shapes

* Cleanup

* Docs

* red => black

* Some hats

* red to black script

* More shapes

* Tweak sizes

* Tweaks to measurements

* Keep both hat adjustment scripts

* Dock tweaks

* More size tweaks

* Update docs

* Remove unused hat

* shapeMeasurements => shapeAdjustments

* Expose enablements

* `star` => `crosshairs`

* Try to use post-install script

* Revert "Try to use post-install script"

This reverts commit 13c828e66c.

* Revert "Expose enablements"

This reverts commit 553f6bec67.
2021-10-05 18:38:32 +01:00
Pokey Rule
a186d6d4d9
Support value for return value (#285) 2021-09-28 16:56:55 +01:00
Pokey Rule
55c39876cf
Support multiple destinations for call action (#284) 2021-09-28 13:00:35 +02:00
Pokey Rule
fdebfe93c7
Support triple backtick (#279)
Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2021-09-21 16:02:43 +02:00
Pokey Rule
405b5c3bdb
Invert color settings (#280)
* Invert color settings

* Remove high contrast theme
2021-09-21 15:55:55 +02:00
Andreas Arvidsson
e85e5f1b5b
Put identifier before repeatable symbols (#278) 2021-09-20 07:04:37 +01:00
Andreas Arvidsson
57d4ac1a57
Added support for unicode characters in regular expression (#275)
* Added support for unicode characters in regular expression

* Cleanup
2021-09-14 09:47:02 +02:00
Andreas Arvidsson
4bf5e8f542
Added triple quote to regular expression (#274) 2021-09-13 17:36:34 +01:00
Pokey Rule
c1aa52c753
Tweak default colors (#267)
* Tweak default colors

* Try to fix extension dependencies

* Updated settings color

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2021-09-11 21:08:23 +02:00
Pokey Rule
18488370f0
Fix SVG alignment and click box (#273)
* Fix SVG alignment and click box

* Adjust measurements to compensate for math fix
2021-09-11 19:35:01 +02:00
Pokey Rule
5ce3c2f756
Fix color tokens (#268) 2021-09-09 10:50:39 +02:00
Pokey Rule
2ad4abef21
Rename purple to pink (#263)
* Rename purple to pink

* Cleanup
2021-09-06 18:11:05 +01:00
Pokey Rule
8488e917d0
Add suffixedMatcher; use for keys (#260)
* Add suffixedMatcher; use for keys

* Fix whitespace

* Fix tests
2021-09-06 17:58:53 +01:00
Pokey Rule
4a5b5501bf
master => main (#262) 2021-09-06 18:53:06 +02:00
Pokey Rule
cd8258f8d7
Fix "take every value" in python (#258)
* Fix "clear every value" in python

* Add type negation

* Fix bug with "chuck type"
2021-09-05 16:29:14 +02:00
Pokey Rule
538ac6039c
Add a bunch of new hats (#256)
* Initial many shapes

* Random thing

* Hacked multi-color bulls eye hat

* New set of shapes

* Some cleanup

* Tweak hat measurements

* Remove unused hats

* Switch to utf-8 for uri-encoding svg

* Make hat enablement / penalties configurable

* Disable a few hat shapes by default

* Update README

* Fix readme

* Arrange settings more compactly
2021-09-03 15:42:45 +02:00
Pokey Rule
3d53c8708d
Multiple hat styles (#253)
* Triangle hats

* Initial triangle hat

* Lots of hats

* Initial support for multiple hat glyphs

* Tweak comment

* Remove debug statements

* "glyph" => "shape"; "ninja" => "star"

* Remove unused hats

* Add a hat; cleanup

* Some renaming

* "valley" => "chevron"

* Fixed chevron
2021-09-01 16:01:35 +02:00
Pokey Rule
870e20f845
Fix copy when focus is not on editor (#255)
* Fix copy when focus is not on editor

* Fix bug
2021-09-01 13:55:45 +02:00
Pokey Rule
fac32ad5e3
Fix anonymous functions (#232)
* Fix anonymous functions

* Add tests for anonymous functions
2021-08-31 19:07:17 +02:00
Pokey Rule
e15bf2e0f0
Renames for csv overrides PR (#248)
* Throw error for sub token exclusions

* Add action name canonicalization

* switch to exclude for subtokens

* Lots of renaming

* Change many names

* Use canonicalization for all deprecations

* Better exceptions

* Improve rename script

* Docstring

* Normalized test case yml

* Add a note

* Fix unit tests

* Changes

* More fixes

* Fixes

* Fixes

* Remove extraneous files
2021-08-31 08:19:07 +02:00
Pokey Rule
518683ff2a
Add cell selection type (#246)
* Initial work

* Add support for "drink" / "pour" cell

* Add docstring

* Add jupyter dependency

* Add comments
2021-08-23 16:23:10 +01:00
Pokey Rule
dfc8f4ac85
Improve badges (#245)
* Add tests badge

* Update version badge

* Changed color

* Clean up badges
2021-08-20 08:49:08 +02:00
Andreas Arvidsson
2bcb516c57
General cleanup (#235)
* Removed inference context

* Unify inference of partial range and list targets

* Capitalize all action names

* Starting to clean up process targets

* Added selection type to action preference

* Updated variable names

* Move modifiers to own process file

* Moved process selection type to own file

* Moved process mark to own file

* Moved process position to own file

* Moved files into folders

* Rename start and end to anchor and active

* Filter duplicate selections

* cleanup

* move cursor token out of navigational map

* Reworked inference

* Some minor tweaks

* Small tweaks

* Move some files

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-08-19 17:05:03 +01:00
Pokey Rule
91c391284b
Retry tests and remove sleep (#239) 2021-08-19 15:20:19 +01:00
Pokey Rule
4aaa12e6db Release 0.21.0 2021-08-17 17:02:07 +01:00
Andreas Arvidsson
0e67a27548
Fixed bug with array in pair value (#241) 2021-08-16 14:27:07 +01:00
Andreas Arvidsson
7a107192d0
Bugfixes: past token, past end of, subtoken out of range, sort tokens (#229)
* Support take token past

* Support take past token

* Added more tests

* Better error message for sub token index out of range

* No delimiters on start and end of positions

* Sort multiple match tokens

* Sort tokens on length

* Sort tokens on length

* Sort on alphanumeric as well

* Added additional tests

* Change directory

* Add directory to a message

* Changed inference on end

* Added tests

* find tokens by range

* Renamed attributes

* Add docstring

* Fix multi-editor bug

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-08-15 13:28:25 +02:00
Pokey Rule
0ad7888dd5
Fix cross-split selections (#233) 2021-08-15 12:43:46 +02:00
Andreas Arvidsson
33445988aa
Check ancestors for every (#227) 2021-08-13 22:30:21 +01:00