Commit Graph

258 Commits

Author SHA1 Message Date
Pokey Rule
fd7736e35b
Move to monorepo (#510)
* git subrepo clone (merge) https://github.com/cursorless-dev/cursorless-talon.git cursorless-talon

subrepo:
  subdir:   "cursorless-talon"
  merged:   "afa65b88"
upstream:
  origin:   "https://github.com/cursorless-dev/cursorless-talon.git"
  branch:   "main"
  commit:   "afa65b88"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* Set up tests and deploy for cursorless talon subrepo

* Cleaner solution
2022-01-27 09:32:13 +00:00
Pokey Rule
5565a61d54
Continuous delivery take II (#509) 2022-01-26 15:46:26 +00:00
Pokey Rule
bfd4097f4a
Publish extension on merge to main (#507)
* Add continuous delivery of extension

* Add comment

* Only deploy if tests passed

* Pr feedback
2022-01-26 14:49:47 +00:00
Pokey Rule
4116475888
Detect when talon files are newer than extension (#504)
Fixes #498
2022-01-25 19:49:15 +01:00
Pokey Rule
5f08ec42ec
Pull request templates (#503)
* New language pull request template

* Add generic template

* Cleanup pull request template

* Cleanup checklist
2022-01-24 16:21:44 +00:00
Pokey Rule
0a9a243e3b
Create FUNDING.yml (#500) 2022-01-21 17:05:22 +01:00
Andreas Arvidsson
0ca8def59c
Fixed bug where line breakpoint would use incorrectly character (#490)
* Bug fix line breakpoints

* Updated end character when creating breakpoint

* Added tests for breakpoints

* Remove breakpoints after tests

* Added breakpoint removed tests

* Spelling

* Check that undesired breakpoints aren't removed

* Fix test

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2022-01-19 17:56:31 +01:00
Andreas Arvidsson
c79afbb56c
Group by document and not editor (#382)
* Group by document and not editor

* Updated comment

* Update src/util/targetUtils.ts

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

* Change comment into correct format for typescript

* Added test

* Use hat token maps split key

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2022-01-17 19:17:24 +01:00
Pokey Rule
6cb9dea7a6
Badge format tweak (#489) 2022-01-17 14:40:47 +00:00
Andreas Arvidsson
31da3bc21e
Implemented selection type non white space sequence (#480)
* Implemented selection type non white space sequence

* Updated paint so it can't shrink

* Cleanup
2022-01-17 15:35:10 +01:00
Andreas Arvidsson
d0d41d9a99
Added support for child indexes in the pattern finder (#395)
* Added support for child indexes in the pattern finder

* Updated pattern finder to correctly do descending search with optional parents

* Clear up any type and not type in pattern finder

* Updated go to use new index feature in pattern finder
2022-01-17 15:17:04 +01:00
Pokey Rule
6f472846fe
Clean up badges; add ratings badge (#488) 2022-01-17 14:06:49 +00:00
Andreas Arvidsson
81def893a6
Added block comments tokens to tokenizer (#479) 2022-01-15 14:14:06 +00:00
Andreas Arvidsson
fc5057acd1
Make matching pair work inside regex in typescript (#472)
* Make matching pair work inside regex in typescript

* Added test
2022-01-13 16:09:43 +00:00
Pokey Rule
1923cbda63
Release 0.25.0 (#439)
* Add changelog and bump version number

* Add release summary

* Fix broken link
2022-01-09 19:30:54 +00:00
Stefan du Fresne
8e7f10113e
Scala support (#399)
* scala support: initial commit

* className should work here

* class, className, ifStatement, string, comment

* very basic list and call support

* class changes to support traits and test case classes

* (some) lambdas, maps, interpolated strings

* argument and parameter support

* names, functions and function names

* basic types (no generic specific work yet)

* basic value support

* conditions

* cleaning up temp work

* doc changes

listing out every place where code has to change to add a new language

* adding fn names

* Fix scala language id missing

* more matching values tests

Testing when the mark is on the name of the value.

* More condition tests

For marks which aren't the condition itself

* Dropping list and map, improving types

You can now grab types when the mark is not in the type itself

* paired delimiters

* Dropping comment about partial functions

I'm not sure we can ever truly detect these. At least in the current tree sitter implementation they are eg just infix expressions, just like lots of other things

* cleaning up types

* More type tests

For when the mark is not directly on the type

* Fixing up types

* cleaned up notes

* clarifying our type matching strategy

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2022-01-08 16:42:56 +00:00
Pokey Rule
004ce14051
Cross-cell set selection (#430)
* Initial work

* More stuff

* Initial working version

* Ad comment

* Add test

* Removed notebook

* Add documentation

* Fix typo

* Up da documentation

* Try to fix ci

* Add comment

* Another attempt at ci

* ci

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2022-01-08 17:05:02 +01:00
Pokey Rule
93973f181f
Configurable debounce delay (#433) 2022-01-08 16:58:58 +01:00
Andreas Arvidsson
09f0e481b5
Hide decorations for selections that are larger than the viewport (#403)
* Don't show decorations for selections that are larger than the visible range

* Allow decorations on equal

* Make selection more specific

* Do filtering only on line numbers
2022-01-06 14:22:40 +00:00
Andreas Arvidsson
55ca9668b5
Added support for user colors (#386)
* Added support for user colors

* Update package.json

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

* Extend hat test

* Added simple page to test different colored hats

* Limit user colors too 2

* Added default values for user colors

* Update src/core/constants.ts

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

* Remove color test from data folder

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2022-01-05 14:50:02 +01:00
Andreas Arvidsson
78aceac895
In typescript short hand property can be treated as key item or value (#381)
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2022-01-05 13:55:51 +01:00
Andreas Arvidsson
14749f4f42
Re enable fold single line (#401)
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2022-01-04 17:39:46 +01:00
Pokey Rule
bf0dc84649
Update description and keywords (#419)
* Update description and keywords

* Modify order

* More changes

* Update maintenance

* Tweak verbiage
2022-01-01 15:05:40 +00:00
Pokey Rule
715a8e77fb
Release 0.24.1 (#412) 2021-12-23 17:04:58 +00:00
Pokey Rule
e50b90c9da
Fix html text fragment types (#411) 2021-12-22 19:03:04 +01:00
Pokey Rule
fc29ccc013
Release 0.24.0 (#407)
* Draft changelog

* More changelog

* More changelog

* Add demo video

* Bump version number

* Swap figures

* More release notes

* Update video

* More changelog

* More changelog

* More changelog

* Update release date

* Update gif
2021-12-21 09:45:06 +00:00
Pokey Rule
53a0202b8a
Fix hat map jitter (#408) 2021-12-21 07:12:36 +00:00
Andreas Arvidsson
d9f37326aa
Added asynchronous implementation of command action (#402)
* Added asynchronous implementation of command action

* Removed unused import

* Made sure that command is not executed before range updater is ready

* New version of execute command

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-12-19 09:21:04 +01:00
Pokey Rule
a9d9abf075
Fix that mark for rewrap action (#406) 2021-12-19 00:01:23 +01:00
Pokey Rule
9f75b9d8b6
Escaped square (#404) 2021-12-18 16:39:14 +01:00
Pokey Rule
540fbf091b
Filter out single-line targets for fold action (#400)
* Revert "Allow to fold single line (#394)"

This reverts commit 8117983d6e.

* Keep good changes

* Keep good changes
2021-12-17 17:19:19 +00:00
Pokey Rule
12e76874b1
Fix inside-outside for implicit targets (#398)
* Fix inside outside inference

* Attempt to fix inside-outside for implicit target

* Fixes

* Revert "Fixes"

This reverts commit 80a9ca1d43.

* Another attempt at implicit fix

* Add log fix back

* Revert stuff
2021-12-17 16:01:41 +01:00
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