Commit Graph

326 Commits

Author SHA1 Message Date
Pokey Rule
d0ec0057fd
Upgrade tests (#397) 2021-12-17 14:36:32 +01:00
trace-andreason
d131a504e7
Adding Language Support for Go (#391)
* adding go support

* fixing comment

* pokey comments

* refactor child matcher

* suggestions, fixes and tests

* more tests

* more tests

* remove extra line

* add a function comment

* add takeString test case

* add a line thing that seems necessary

* add more tests

* support value in return statements

* Add missing tests

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-17 12:48:02 +00:00
Pokey Rule
81d94e2b39
Handle angle brackets within an error node (#396)
* Broken getAncestors

* Fix angle brackets within an error node

* Cleanup
2021-12-17 13:00:44 +01:00
Andreas Arvidsson
8117983d6e
Allow to fold single line (#394)
* Allow to fold single line

* Enable to fold in a different editor/across split

* Changed inside outside type to inside

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-17 08:39:48 +01:00
Andreas Arvidsson
88840929ee
Only show debug log in development mode (#380)
* Only show debug log in development mode

* Added setting for debug

* Listen force changes in debug setting

* Made debug into a graph factory

* Updated the comment

* Bind this

* Update src/core/Debug.ts

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

* Update src/core/Debug.ts

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

* Cleanup

* Allow debug log in startup

* Create own log debug function

* Added active field to log debug

* Moved debug log into debug class

* Change stack trace from debug to error

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-16 23:07:43 +01:00
Andreas Arvidsson
ff74551c22
Added html language implementation (#385)
* Added html language implementation

* Added additional angle bound

* Added tests

* Updated tests

* Changed order of delimiters

* A de test inside comment

* Added htmlStringTextFragmentExtractor
2021-12-16 19:47:32 +01:00
Pokey Rule
8d5e372ed4
Preliminary clojure support (#375)
* Preliminary clojure support

* Cleanup

* Support clojure key, value, and item

* Add tests for multiple cursors

* Handle case where selection inside comment

* Add some basic argument support

* More work on clojure

* A bit of cleanup

* Support if statements
2021-12-16 16:44:46 +00:00
Andreas Arvidsson
57aeb8fcfd
Implemented strict here selection type (#352)
* Implemented strict here selection type

* Initial backwards compatibility

* Start to refactor

* More changes

* Attempt to make new raw selections work

* Fix bug and add a bunch of tests

* Remove unused function

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-16 17:23:28 +01:00
Andreas Arvidsson
e17c60f8d5
Reworked decorations debounce delay with special exception for scrolling (#377)
* Reworked decorations debounce delay with special exception for scrolling

* Restore indentation

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-16 11:52:56 +01:00
Andreas Arvidsson
913796186d
Added default configuration for padding top (#390)
* Added default configuration for padding top

* Update package.json

* Updated package json
2021-12-16 10:34:16 +00:00
Andreas Arvidsson
3a83bdcf62
Added support for user define custom actions (#376)
* Added support for custom command actions

* Renamed action to execute command

* Added additional arguments to execute command

* Added support for additional arguments in command action

* Added test for custom command

* Test custom action that does not restore selection
2021-12-14 18:45:26 +01:00
Pokey Rule
68d6ccb47e
Allow non-yaml files in recorded tests dir (#387) 2021-12-12 17:19:46 +00:00
Andreas Arvidsson
9df55b699c
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
2021-12-12 15:04:50 +01:00
Andreas Arvidsson
0712ee8fa9
Include generic in java type definition (#372)
* Include generic in java type definition

* Make typescript type scope type consistent with java

* Add tests for typescript

* Upgrade tests

* Added dock string

* Updated type for typescript constructor arguments

* Include constructor identifier without argument list in the definition of type

* Add a test

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-10 10:13:03 +00:00
Andreas Arvidsson
66f160e2d3
Change column modified to range vertical connector (#353)
* Change column modified to range vertical connector

* Updated tests

* Change file type of vertical tests

* Renamed is column to range type

* Added continuous range type

* Added comment explaining range type

* Upgrade tests

Co-authored-by: Andreas Arvidsson <andreas.arvidsson@redpill-linpro.com>
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-08 18:35:30 +01:00
Pokey Rule
4150c58ce7
Fix JSON surrounding pairs (#370)
* Initial working version

* Fixed java surrounding pair

* Fix typescript

* Improve angles

* Add documentation

* Typescript template string tweaks

* Fix ci

* Remove unused import
2021-12-08 18:21:47 +01:00
Pokey Rule
83543d38bf
Fix doc links (#371) 2021-12-08 12:27:02 +01:00
Andreas Arvidsson
9ff51daf79
Added a rebounce delay setting (#368) 2021-12-07 17:55:46 +01:00
Pokey Rule
8df6295238
Fix typescript angle bracket pair (#367) 2021-12-07 16:50:35 +01:00
Pokey Rule
b6b22f87f6
Add rewrap action (#365)
* Initial attempt

* Initial working version

* Add tests

* Add another test

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2021-12-07 16:34:33 +01:00
Pokey Rule
d855232dc1
Add hat snapshot documentation code links (#362)
* Add hat snapshot documentation code links

* Fix doc links

* More cleanup

* cleanup
2021-12-07 08:12:04 +01:00
Pokey Rule
0b685a7cc2
Hat snapshots (#318)
* Initial attempt to at snapshots

* Switch to unnamed snapshots

* A kind of workign attempt

* A kind of workign attempt

* Use command server signal API

* More error robustness

* Working version

* Have navigation map return snapshot

* Attempt at big refactor

* Fixes to get it running

* Rename

* Bind function

* Remove unnecessary field

* Add docstring

* snapshot => prePhraseSnapshot

* Clean yaml

* Do disposal in hat allocator

* navigationMap => hatTokenMap

* Add tests

* Make isTesting into function

* Set testing env var

* Try to change env var

* Initial cleanup work for edits outside viewport

* More cleanup

* Fix yarn lockfile

* Fix yarn

* refactoring

* Fixes; add tests

* File rename

* Finish merging

* Some cleanup

* Create command runner class

* Working backwards compatible command runner

* More backward compatibility fixes

* Rejects stale snapshots

* Add link

* A bunch of refactoring

* Test fixes

* Revert change

* Improved canonicalization

* Add comment

* Fix ci

* Rollback decoration test change

* Attempt to fix decorations

* Normalize hat enablement during testing

* Fix recorded tests

* Fix tests

* Cleanup test recording

* Add docs

* Fix creating nested recorded test directories

* Cleanup test case bulk transformer

* More transform script fixes

* More transform stuff

* Upgrade a test
2021-12-06 18:13:48 +00:00
Andreas Arvidsson
23fe4dbcdd
Disabled statement block on typescript (#359) 2021-12-05 16:56:12 +00:00
Andreas Arvidsson
0c394d787e
Column selection type (#351) 2021-12-02 12:55:31 +00:00
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