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
Oliver Blanthorn
c118610528
Merge pull request #3582 from Rummskartoffel/hint-performance
...
Hinting: improve hintables() performance by not using Ramda
2021-04-17 11:34:24 +01: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
dependabot-preview[bot]
5a11a97f83
Merge pull request #3578 from tridactyl/dependabot/npm_and_yarn/webpack-5.33.2
2021-04-15 06:40:54 +00:00
dependabot-preview[bot]
9925435046
Merge pull request #3580 from tridactyl/dependabot/npm_and_yarn/types/node-14.14.39
2021-04-15 06:39:30 +00:00
dependabot-preview[bot]
51b0a0c788
Bump @types/node from 14.14.37 to 14.14.39
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.37 to 14.14.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-15 06:22:47 +00:00
dependabot-preview[bot]
8475b9ebda
Bump webpack from 5.32.0 to 5.33.2
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.32.0 to 5.33.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.32.0...v5.33.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-15 06:10:29 +00:00
dependabot-preview[bot]
2974739bfb
Merge pull request #3575 from tridactyl/dependabot/npm_and_yarn/eslint-config-prettier-8.2.0
2021-04-13 15:55:46 +00:00
dependabot-preview[bot]
c299d6e481
Bump eslint-config-prettier from 8.1.0 to 8.2.0
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.1.0...v8.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-13 15:35:04 +00:00
dependabot-preview[bot]
f27bb5e470
Merge pull request #3573 from tridactyl/dependabot/npm_and_yarn/webpack-5.32.0
2021-04-12 19:39:35 +00:00
dependabot-preview[bot]
f5f910bcd7
Bump webpack from 5.31.2 to 5.32.0
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.31.2 to 5.32.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.31.2...v5.32.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-12 19:05:05 +00:00
dependabot-preview[bot]
03169d1bb8
Merge pull request #3570 from tridactyl/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-tslint-4.22.0
2021-04-12 18:26:29 +00:00
dependabot-preview[bot]
7d33da1c48
Bump @typescript-eslint/eslint-plugin-tslint from 4.21.0 to 4.22.0
...
Bumps [@typescript-eslint/eslint-plugin-tslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin-tslint ) from 4.21.0 to 4.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin-tslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.22.0/packages/eslint-plugin-tslint )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-12 17:52:37 +00:00
dependabot-preview[bot]
8e5578feb1
Merge pull request #3572 from tridactyl/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.22.0
2021-04-12 17:50:45 +00:00
dependabot-preview[bot]
3ce47ab373
Bump @typescript-eslint/eslint-plugin from 4.21.0 to 4.22.0
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.21.0 to 4.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.22.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-12 17:32:44 +00:00
dependabot-preview[bot]
de8019230f
Merge pull request #3571 from tridactyl/dependabot/npm_and_yarn/typescript-eslint/parser-4.22.0
2021-04-12 17:30:40 +00:00
dependabot-preview[bot]
bf272345bf
Bump @typescript-eslint/parser from 4.21.0 to 4.22.0
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.21.0 to 4.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.22.0/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-12 17:11:55 +00: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
a9fdde0a2a
Move files all at once once finished
2021-04-12 13:53:59 +02:00
Oliver Blanthorn
5cad7ebfab
Make Tridactyl reload pages on dev rebuilds
2021-04-12 13:51:50 +02:00
Oliver Blanthorn
654a62958d
Merge pull request #3534 from vtavernier/feature/hint-refactor
...
Refactor :hint
2021-04-12 12:49:48 +01:00
dependabot-preview[bot]
aebbf32412
Merge pull request #3567 from tridactyl/dependabot/npm_and_yarn/marked-2.0.3
2021-04-11 19:55:02 +00:00
dependabot-preview[bot]
5cf67e2eff
Bump marked from 2.0.2 to 2.0.3
...
Bumps [marked](https://github.com/markedjs/marked ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/markedjs/marked/releases )
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js )
- [Commits](https://github.com/markedjs/marked/compare/v2.0.2...v2.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-11 19:18:10 +00: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
f75f81f49e
Add sourcemaps
2021-04-10 22:58:02 +02:00
dependabot-preview[bot]
88da1e3b4a
Merge pull request #3563 from tridactyl/dependabot/npm_and_yarn/marked-2.0.2
2021-04-10 20:54:12 +00:00
Oliver Blanthorn
f84fe6f91e
Skip grammar generation on quick builds
2021-04-10 22:52:22 +02:00
Oliver Blanthorn
f6e52656e3
Fix another missed moduleInterop
2021-04-10 22:47:00 +02:00