Commit Graph

210 Commits

Author SHA1 Message Date
Andreas Arvidsson
d176211e55
implemented actions puff, float, drop (#122)
* implemented actions puff, float, drop

* remove unnecessary check for reversed selection

* renamed insert line actions

* Update Types.ts

* Update index.ts

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-22 20:33:52 +01:00
Andreas Arvidsson
f0612d922e
Fix bug with two adjacent tokens (#129) 2021-07-21 07:23:11 -07:00
Andreas Arvidsson
0e307f4369
Subtokens support reversed order ordinals (#121)
* fixed small offset error on the negative end index

* Handle reverse order sub token

* excluding end index for negative index

* use anchor and active instead of start and end
2021-07-21 01:57:02 +01:00
Andreas Arvidsson
477681d2aa
added find all action (#120)
* added find all action

* Get text through graph

* use get text in copy action

* Cleanup

* More cleanup

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-21 01:55:09 +01:00
Andreas Arvidsson
a1722a3853
Infer missing end mark on ranges (#118)
* Infer same line as mark when using past end of line

* infere missing end mark for all selection types
2021-07-21 01:34:25 +01:00
Andreas Arvidsson
d95a990437
Added actions: indent, dedent, comment (#116)
* Added actions: indent, dedent, comment

* Renames indent classes

* Update Types.ts

* Update index.ts

* Update Comment.ts

* Update index.ts

* Update Types.ts

* Update CommandAction.ts

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-21 01:33:12 +01:00
Andreas Arvidsson
63b330ab1c
implemented paste action (#115)
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-21 01:21:34 +01:00
Pokey Rule
5eada65c0a Release 0.19.0 2021-07-16 21:36:07 -07:00
Andreas Arvidsson
681671b257
Pr/move/merged (#119)
* Merged with cleanup

* Append delimiter for eg "bring to after"

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-16 16:48:37 +02:00
Andreas Arvidsson
4cfd53274f
Move action (#108)
* implemented move action

* refactoring and clean up of move

* renamed use to bring

* performed actions suggested in PR

* small update to get that mark to work correctly

* perform move with outside modifier on source

* added support for space and new line delimiters

* Added outer selection to corrctly delete line

* Update src/performDocumentEdits.ts

Co-authored-by: Brock McElroy <28877984+brxck@users.noreply.github.com>

Co-authored-by: Brock McElroy <28877984+brxck@users.noreply.github.com>
2021-07-16 10:43:13 +02:00
Andreas Arvidsson
31ab1c820f
fixed take that on pre and post (#114) 2021-07-16 10:42:28 +02:00
Pokey Rule
63c17831bd Add CODEOWNERS 2021-07-15 18:40:40 -07:00
Pokey Rule
f25275d5e2 Release 0.18.0 2021-07-12 19:26:31 +01:00
Pokey Rule
9d81501c82
Add support for untrusted workspaces (#104) 2021-07-12 19:23:59 +01:00
Pokey Rule
ff120118c5 Fix badges 2021-07-11 21:16:27 +01:00
Pokey Rule
eb1903f128
Add README badges (#105)
* Improve README

* README update

* Fix README

* More README

* Release 0.17.3

* Remove broken svg badge
2021-07-11 21:07:36 +01:00
Pokey Rule
11dbf92c1a Release 0.17.2 2021-07-09 22:34:46 +01:00
Pokey Rule
f94357215d
Final cleanup before new user release (#102) 2021-07-09 22:33:05 +01:00
Pokey Rule
a27bad61d1 Fix changelog 2021-07-09 18:18:37 +01:00
Pokey Rule
6df78ab2fb Release 0.17.0 2021-07-09 18:00:50 +01:00
Pokey Rule
328884a2ef Release 0.16.0 2021-07-09 15:36:59 +01:00
Pokey Rule
1478b17662 Change hat size adjustment setting 2021-07-09 15:13:52 +01:00
Andreas Arvidsson
c0ad928810
Updated regular expression for sub word matcher and added additional tests (#88) 2021-07-09 12:04:17 +01:00
Andreas Arvidsson
dddb5cd970
Added actions to scroll target top/center (#58)
* added actions to scroll mark top/center

* updated name of scroll functions

* use command reveal line instead of api

* alphabetize action names

* Update src/actions/Scroll.ts

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

* Update src/editDisplayUtils.ts

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

* general cleanup of scroll function

* remove line decoration after scroll is done

* Reuse focus editor

* fixed missing await

* Update src/actions/Scroll.ts

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

* improved call back name and added doc string

* replaced map with for loop to preserved sequence of the promises

* Update src/editDisplayUtils.ts

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

* Update src/editDisplayUtils.ts

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

* Update src/editDisplayUtils.ts

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

* Update src/editDisplayUtils.ts

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

* Update src/editDisplayUtils.ts

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

* Clean up and tweaking

* re name callback

* Add setting for showing additional highlight

Co-authored-by: Andreas Arvidsson <andreas.arvidsson@redpill-linpro.com>
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-08 16:50:48 +01:00
Pokey Rule
d1fbe3f54f
Add a couple more token fixed symbols (#76)
* Add a couple more token fixed symbols

* Add '->'
2021-07-07 21:11:38 +01:00
Brock McElroy
0e4c072b29
Fix subword for all caps tokens (#67)
* Fix subword for all caps tokens

* Test subword matcher regex

* Note subword matcher  shortcoming
2021-07-07 21:11:22 +01:00
Brock McElroy
99eea6885f
Refactor transformations and add name transformation (#56)
* Add name field transformation

* Add AST debug logging

* Add basic name transformation

* Refactor matchers to add function name transform

* Add missing function name

* Clean up transformations refactor

* Refactor branch debug logging

* Fix purple color setting name

* Add function and class name scopes

* Fixed name matching for exported/decorated nodes

* Clean up transformations refactor (again)

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-07 21:02:29 +01:00
Brock McElroy
5271ce3f1c
Fix purple color setting name (#75) 2021-07-06 21:43:23 +01:00
Pokey Rule
89501db38a Add some documentation of SVG calculations 2021-07-06 19:40:40 +01:00
Andreas Arvidsson
5cf8a8db87
Update color (#62)
Co-authored-by: Andreas Arvidsson <andreas.arvidsson@redpill-linpro.com>
2021-07-06 16:00:38 +01:00
Andreas Arvidsson
b60697db23
Updated regexp to support fixed tokens and sequential symbols (#33) 2021-07-06 14:08:56 +01:00
Brock McElroy
5c5256c8bf
Add type transformation (#32)
* Add type transformation

* Attempt to be fancy

* Match child node of type annotation

* Use exported declaration helper

* Make type transform unsupported in other languages

* Add Python type transform support

* Match optional Typescript types

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-07-05 18:30:44 +01:00
Pokey Rule
c0b35fb8e7
Svg Hats (#66)
* Initial colored svg hats

* Various changes

* Initial working version

* Fix spacing

* Use web view to compute font size (#57)

* Use web view to compute font size

* added missing px

Co-authored-by: Andreas Arvidsson <andreas.arvidsson@redpill-linpro.com>

* Working computations

* Tweak hats so they work well for Pokey

* Make height and size of hats configurable

* added cache and settings for hats/font

* Clean up

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
Co-authored-by: Andreas Arvidsson <andreas.arvidsson@redpill-linpro.com>
2021-07-05 18:19:59 +01:00
Pokey Rule
33c7f9dd6d 0.15.0 2021-06-29 21:10:52 +01:00
Brock McElroy
a0e99bbf95
Add character subpiece transformation (#25)
* Add character subpiece transformation

* Fix indicating last subpiece by its index

* Minor tweaks

Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
2021-06-29 20:38:14 +01:00
Pokey Rule
4873ba375a Cleanup use.ts 2021-06-29 20:35:07 +01:00
Pokey Rule
974c91ba2d 0.14.0 2021-06-22 15:42:10 +01:00
Pokey Rule
7753581578 Support insertLineBefore and insertLineAfter 2021-06-22 15:42:00 +01:00
Pokey Rule
367dd2fafe Add "file" and other stuff
- Support "file" selection type to refer to the entire file
- Improve error messages
2021-06-22 12:59:10 +01:00
Pokey Rule
9be4dcd2c9 0.12.0 2021-06-21 17:53:20 +01:00
Pokey Rule
bfb98a95c9 Changes for 0.12.0
- Add subword support
- [python] Fix parameter transformation
- Show exceptions to user
- Properly support using "token" to select only token, eg "take funk gust and
  token fine" to prevent "fine" from being inferred to have the `function`
  transformation.
- Support "bring" action to use another target from elsewhere in the document
2021-06-21 17:52:44 +01:00
Pokey Rule
cfe612d734 Fix export bug 2021-05-15 18:19:02 +01:00
Pokey Rule
f527276091 Improved clear 2021-05-15 16:25:40 +01:00
Pokey Rule
b4e7d4cf02 Fix remote support 2021-05-13 21:49:11 +01:00
Pokey Rule
0fc64ec03e Simplify token regex 2021-05-12 18:44:08 +01:00
Pokey Rule
f0f9c36ac6 Comments 2021-05-12 12:25:16 +01:00
Pokey Rule
30a29e2626 0.10.4 2021-05-12 12:19:11 +01:00
Pokey Rule
81587776de Include export keyword when matching statements 2021-05-12 12:18:31 +01:00
Pokey Rule
deddee1c1c Update settings.json 2021-05-12 10:54:06 +01:00
Pokey Rule
856d30a852 web-tree-sitter; python; icon 2021-05-12 10:53:18 +01:00