Commit graph

3335 commits

Author SHA1 Message Date
Oliver Blanthorn
d9fe1bedca
Merge branch 'DhruvaSambrani-master' 2021-05-01 12:53:12 +02:00
Oliver Blanthorn
c307c03639
Rename drawing commands 2021-05-01 12:52:38 +02:00
Oliver Blanthorn
9fe79529c7
WIP: swap ramda for rambda
It supports TS a bit better and is a bit quicker.

But it has fewer functions
2021-04-29 17:52:41 +02:00
Oliver Blanthorn
8a5f6dcb65
Cheer up prettier 2021-04-29 17:52:14 +02:00
Dhruva Sambrani
eb0c84f1cd
Update src/excmds.ts
Co-authored-by: Oliver Blanthorn <freedom4cows@gmail.com>
2021-04-25 20:20:36 +05:30
Dhruva Sambrani
4669cea9da Fix usage for pen tablet/stylus 2021-04-25 17:16:13 +05:30
Dhruva Sambrani
60d30b47d2 revert opacity as per review 2021-04-24 18:17:24 +05:30
Dhruva Sambrani
ca9e9c174d fix zIndex and add 0.98 comment 2021-04-24 17:43:59 +05:30
Dhruva Sambrani
fdc65fdfc5
fix docs as per review
Co-authored-by: Oliver Blanthorn <freedom4cows@gmail.com>
2021-04-24 17:18:25 +05:30
Dhruva Sambrani
3274c5aef5 fix lint errors 2021-04-24 16:38:40 +05:30
Dhruva Sambrani
e8efa69600 Major fixes
- Fixes stroke fill
- make canvas full page
- fix as per review
Changes to be committed:
    modified:   src/content/toys.ts
    modified:   src/excmds.ts
2021-04-24 16:31:30 +05:30
Dhruva Sambrani
df484c44e6 fix lint errors 2021-04-23 19:05:10 +05:30
Dhruva Sambrani
619d6135b4 Added drawable no mouse mode 2021-04-23 18:49:19 +05:30
Oliver Blanthorn
8d58ed9535
Fix half of #3590: display nmode mode indicator 2021-04-22 12:45:30 +02:00
Oliver Blanthorn
fab765b70f
Fix formatting with minimal thought 2021-04-21 18:02:54 +02:00
mozbug
712c5fd696
Avoid updating DOM in-place 2021-04-21 17:58:58 +02:00
glacambre
5b97026d80 Fix open() not running in current tab
This was an issue when using open() in an autocommand that would run on
DocStart in a background tab. For example

:autocmd DocLoad example.org open example.net
:tabopen -b example.org

Opened example.net in the current tab instead of the one holding
example.org.
2021-04-17 18:19:06 +02:00
Rummskartoffel
d0c82a2cc9 Hinting: improve hintables() performance by not using Ramda
On complex pages, Ramda can massively slow down hintables(),
at times single-handedly accounting for 25%+ of :hint's execution time.
Not using it noticeably improves performance on such pages.
2021-04-16 20:53:19 +02:00
Oliver Blanthorn
3dba2f777a
Merge pull request #3564 from tridactyl/nicer_hot_reload
Make Tridactyl reload pages on dev rebuilds
2021-04-12 14:25:19 +01:00
Oliver Blanthorn
2dc24ce1f0
Preserve console between updates 2021-04-12 13:56:31 +02:00
Oliver Blanthorn
5cad7ebfab
Make Tridactyl reload pages on dev rebuilds 2021-04-12 13:51:50 +02:00
Vincent Tavernier
8a059aff9f Fix miscompile with esbuild 2021-04-11 20:14:23 +02:00
Vincent Tavernier
fa2a1af5ff
Try fixing -V issue in :hint refactor 2021-04-11 18:36:13 +02:00
Vincent Tavernier
ba724967db
Document compatible options for :hint better 2021-04-11 18:36:13 +02:00
Vincent Tavernier
81b96651e2
Update documentation for :hint
Co-authored-by: Oliver Blanthorn <freedom4cows@gmail.com>
2021-04-11 18:36:12 +02:00
Vincent Tavernier
da364230ee
Add ';V' binding for 'hint -V' 2021-04-11 18:36:12 +02:00
Vincent Tavernier
d0b5e74021
Remove unnecessary type assertion in src/content/hinting.ts
Co-authored-by: Rummskartoffel <20257197+Rummskartoffel@users.noreply.github.com>
2021-04-11 18:36:12 +02:00
Vincent Tavernier
d1e43996d4
Remove unused hinting helpers 2021-04-11 18:36:12 +02:00
Vincent Tavernier
6c478503ed
Fix single-valued yanks for :hint refactor 2021-04-11 18:36:12 +02:00
Vincent Tavernier
f8ee389631
Fix #1374 in :hint refactor 2021-04-11 18:36:12 +02:00
Vincent Tavernier
03e2f9f470
Fix -pipe should combine with other flags 2021-04-11 18:36:12 +02:00
Vincent Tavernier
1be771e6c1
Reorder cases in argument parsing 2021-04-11 18:36:12 +02:00
Vincent Tavernier
b78ad0eed5
Support -cF selector callback 2021-04-11 18:36:12 +02:00
Vincent Tavernier
9cdd325240
Rename Semicolon to ScrollFocus 2021-04-11 18:36:11 +02:00
Vincent Tavernier
eee50d1ac5
Move :hint refactored argument parser to hint_util, add tests 2021-04-11 18:36:09 +02:00
Vincent Tavernier
b11630c5de
Add missing break, fixes #afe920f 2021-04-11 18:35:38 +02:00
Vincent Tavernier
93a75f192a
Propagate selectors to non-default hintables 2021-04-11 18:35:38 +02:00
Vincent Tavernier
4c19f4557c
Restore -pipe option 2021-04-11 18:35:38 +02:00
Vincent Tavernier
dd5adb56c1
Warn about options without a matching value 2021-04-11 18:35:38 +02:00
Vincent Tavernier
3aa0c26bfc
Restore -c option 2021-04-11 18:35:38 +02:00
Vincent Tavernier
689a649624
Refactor :hint
This commit refactors the `hint` ex command with the following:
* Introduce an argument parser based on a state machine. We can now
properly handle flags, combined short flags, and flags with optional
arguments.
* Keeps backwards compatibility (except for the deprecated `-br` flag):
all current flags are supported, but the ability to parse multiple
options may introduce new behaviors (which would fail before silently).
* Add a `-!` flag: perform the default action on every hint
* Add a `-V` flag: consider elements out of the viewport for hinting
* Changes `-f/-fr` to refine results from the default selectors

Rationale: the hinting command already goes well beyond simply showing
hints for clickable links. It makes sense that 'common' operations
should have easier shortcuts than defaulting to JavaScript callbacks.
This does make the code for `hint` slightly longer, but with the
refactored control flow this doesn't seem significant.
2021-04-11 18:35:38 +02:00
Oliver Blanthorn
43b70c16dd
Make fuzziness less arbitrary
Long URLs are no longer penalised
2021-04-11 17:49:09 +02:00
Oliver Blanthorn
5db0337349
Merge pull request #3554 from tridactyl/esbuild
Switch to esbuild-loader
2021-04-10 22:34:57 +01:00
Oliver Blanthorn
f6e52656e3
Fix another missed moduleInterop 2021-04-10 22:47:00 +02:00
Oliver Blanthorn
1501ea4513
Fix some more module interop stuff 2021-04-10 22:22:14 +02:00
Oliver Blanthorn
f5359f3370
Enable esModuleInterop rule 2021-04-10 21:44:59 +02:00
Oliver Blanthorn
a0f8ae8ed8
Merge pull request #3556 from tridactyl/less_fuzzy
WIP: Make fuzzy matching less fuzzy
2021-04-09 12:09:46 +01:00
Oliver Blanthorn
8115c0dd8d
Improve help and rename option 2021-04-09 12:40:35 +02:00
Oliver Blanthorn
017bc6fdf0
Fix silly typo I introduced 2021-04-08 15:39:54 +02:00
meep
20dc1918e5
WIP: Make fuzzy matching less fuzzy
Known issues: single characters often no longer produce any results
2021-04-08 14:35:16 +02:00