Commit graph

6404 commits

Author SHA1 Message Date
Oliver Blanthorn
979c6acb39
Suggest binds closer to Vim defaults 2022-10-28 17:41:18 +02:00
gholk
03a8a4cf39 Fix firefox html custom element not work in WebExtension content-script
It seem that the custom element will not have right prototype,
and the user defined properties and method will be undefined.

This is cause by a firefox bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1716685

This commit monkey patchs the element manually in constructor
to fix this problem.
2022-09-09 18:57:16 +08:00
gholk
696510a50f Support focus anchor button input details in find
The dom.ts is fixed a little to improve type check.
2022-09-04 15:08:56 +08:00
gholk
d76ad67fe1 Make DOM.isVisible support Range objects
The Range objects have getBoundingClientRect method too,
so it should be acceptable for the DOM.isVisible function.
2022-09-04 00:24:42 +08:00
gholk
b723a7dfba Move FindHighlight focus and unfocus to public method
There is no reason to define them as a new function in constructor
2022-09-04 00:15:36 +08:00
gholk
3ee801de14 Support getting ranges from the find results
New excmd `findselect` to select the current match result of the `find`
command.

The FindHighlight `content/finding.ts` is also rewrite to store the exact
matched range.
2022-09-03 20:02:04 +08:00
gholk
7a374c9235 Docs and types for the arg_util.ts 2022-09-02 22:57:17 +08:00
Gold Holk
77cf95d530 Make next n work if lastSearchQuery is undefined
If there is no existing search when the `findnext` called,
it will try to use the last search from other page,
but the number to jump is not handled in this case.
This commit try to jump to the next n after the search.
2022-09-02 22:55:13 +08:00
Gold Holk
9e5092a246 Docs for new find options and implement the jump-to option
There is a `-:` option in the docs of `find`, but it is not implemented.
This commit implement it.
The new docs of `--search-from-view` and `--reverse` are added, too.
2022-09-02 22:29:18 +08:00
gholk
d5173c0773 Replace minimist with arg for permissive feature
The npm package arg is more flexible than the old arguments parser minimist.
The arg can left the unknown option unchanged,
(while there is a bug that splits the unknown short options,)
and stop at positional arguments are supported, too.
2022-09-01 23:23:16 +08:00
gholk
b4ebaf5186 Fix the findnext behavior after find -?
This commit should make the findnext whit negative argument work fine,
and all combination of [reverse, negative] is take cared.
This may change the original behavior of find, because the original
implementation is buggy.

The `findnext -r` is renamed to `findnext -?` to follow the style of `find -?`.
2022-08-26 22:20:50 +08:00
gholk
8e3d023cde Add reverse option for findnext for better reverse finding
With the reverse option, we can do inverse findnext with number prefix.
This commit also import minimist as arguments parsing library.
2022-08-24 22:07:58 +08:00
gholk
090858e16b Make excmd findnext support search from viewport
To search from view with ex command findnext,
pass the `-r` or the `--search-from-view` option.
2022-08-24 21:17:42 +08:00
gholk
fb2173871f Allow finding.jumpToNextMatch find from the current viewport
Add option to find from the current viewport,
and add isVisible method to FindHighlight.
The reverse finding is not cover now.
2022-08-23 21:42:33 +08:00
gholk
a403999cdc Fix the DOM.isVisible for finding highlight element
The highlight element's position is set to `top: 0; left: 0;`,
so it will never be visible. We should test its child nodes instead.
2022-08-18 20:33:55 +08:00
gholk
c90482042e Fix timestamp in completion of back command for shydactyl
The completion for back/forward can show the history list.
The item contain title, url and timestamp,
but timestamp does not show up in shydactyl theme,
because the `.url` and `.title` both takes `width: 50%;`,
so no space is left for the timestamp.

This commit remove the `.title`'s width contrain,
so the title will adjust its width automatically.
Also style `.time` to appropriate width and align right.
2022-08-03 19:43:53 +08:00
Oliver Blanthorn
36f05bdb96
Merge pull request #4319 from xeruf/patch-1
Fix typos in .tridactylrc
2022-07-27 21:55:30 +01:00
Janek
e4cafb71c1
Clarify .tridactylrc 2022-07-27 22:42:49 +02:00
Oliver Blanthorn
257e0b30a0
Merge pull request #4320 from GHolk/master
Add documentation for most autocmd events
2022-07-27 16:14:53 +01:00
Janek
69e57485b9
Update .tridactylrc 2022-07-26 23:25:34 +02:00
Janek
227203269e
Fix typos in .tridactylrc 2022-07-26 08:28:31 +02:00
gholk
649d2009e8 Add documentation for most autocmd events
Add details for DocStart, DocLoad, DocEnd, TabEnter, TabLeft,
HistoryState, HistoryPushState and HistoryReplace in
autocmd's JSDoc, and correct HistoryPopState to HistoryPushState.
2022-07-25 22:29:52 +08:00
Oliver Blanthorn
92e143cfb8
Merge pull request #4284 from davidscotson/forced-color-mode
Fix #4283 to improve forced-color support
2022-06-30 22:11:21 +02:00
Oliver Blanthorn
fdbee09b0f
Merge pull request #4293 from eunikolsky/fix/ddg_hints
Fix the hints on DuckDuckGo in the sample `.tridactylrc`
2022-06-30 20:15:47 +02:00
Eugene
36f6605fa5 Fix the hints on DuckDuckGo in the sample .tridactylrc
The webpage was updated and that broke the `f` and `F` hints in the
sample rc file (since commit 3bf7e4ab). This change updates the hints so
that they match the search result links again.
2022-06-30 20:49:46 +03:00
Oliver Blanthorn
0ce20acd30
Merge pull request #4278 from tridactyl/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-tslint-5.29.0
Bump @typescript-eslint/eslint-plugin-tslint from 5.28.0 to 5.29.0
2022-06-26 11:25:40 +02:00
Oliver Blanthorn
86305be41d
Merge pull request #4279 from tridactyl/dependabot/npm_and_yarn/eslint-plugin-jsdoc-39.3.3
Bump eslint-plugin-jsdoc from 39.3.2 to 39.3.3
2022-06-26 11:25:00 +02:00
Oliver Blanthorn
a964206849
Merge pull request #4281 from tridactyl/dependabot/npm_and_yarn/esbuild-0.14.47
Bump esbuild from 0.14.45 to 0.14.47
2022-06-26 11:24:42 +02:00
Oliver Blanthorn
9d0fb117fd
Merge pull request #4282 from tridactyl/dependabot/npm_and_yarn/web-ext-7.1.0
Bump web-ext from 7.0.0 to 7.1.0
2022-06-26 11:21:58 +02:00
Oliver Blanthorn
57c4d4c6f1
Merge pull request #4289 from GHolk/mktridactyl-subconfig-bug
Fix #4285: mktridactyl output wrong seturl command
2022-06-26 11:18:18 +02:00
gholk
63b239cb36 Fix previous commit subconfig prefix bug
without shift, mktridactyl will generate
seturl with subconfig keypath.
this commit removes it.
2022-06-26 14:45:52 +08:00
gholk
82ed8447b1 Fix #4285: mktridactyl output wrong seturl command
If there are more than one seturl/bindurl config
in one url, `mktridactylrc` will outputs wrong
seturl/bindurl commands, which become global settings.

Because `prefix.shift()` will mutate the array.
Then in the next iteration, the subconfig and url in prefix
will miss.
2022-06-25 22:05:54 +08:00
David Scotson
483d57b9e9 Fix #4283 to improve forced-color support 2022-06-22 21:03:43 +01:00
dependabot[bot]
52ba789c77
Bump web-ext from 7.0.0 to 7.1.0
Bumps [web-ext](https://github.com/mozilla/web-ext) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/mozilla/web-ext/releases)
- [Commits](https://github.com/mozilla/web-ext/compare/7.0.0...7.1.0)

---
updated-dependencies:
- dependency-name: web-ext
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 22:57:52 +00:00
dependabot[bot]
ffcd0b430a
Bump esbuild from 0.14.45 to 0.14.47
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.45 to 0.14.47.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.14.45...v0.14.47)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 22:54:50 +00:00
dependabot[bot]
9677dc54d7
Bump eslint-plugin-jsdoc from 39.3.2 to 39.3.3
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 39.3.2 to 39.3.3.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v39.3.2...v39.3.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 22:04:40 +00:00
dependabot[bot]
d83113eb63
Bump @typescript-eslint/eslint-plugin-tslint from 5.28.0 to 5.29.0
Bumps [@typescript-eslint/eslint-plugin-tslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin-tslint) from 5.28.0 to 5.29.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin-tslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.29.0/packages/eslint-plugin-tslint)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin-tslint"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 22:03:40 +00:00
Oliver Blanthorn
338046fae9
Merge pull request #4276 from tridactyl/dependabot/npm_and_yarn/esbuild-0.14.45
Bump esbuild from 0.14.43 to 0.14.45
2022-06-19 15:28:41 +02:00
Oliver Blanthorn
5f3f921902
Merge pull request #4273 from tridactyl/dependabot/npm_and_yarn/prettier-2.7.1
Bump prettier from 2.6.2 to 2.7.1
2022-06-19 15:28:23 +02:00
Oliver Blanthorn
01a5cbfba7
Fix #4275: add 12 more browser bind slots 2022-06-19 15:26:49 +02:00
dependabot[bot]
fbca0af651
Bump esbuild from 0.14.43 to 0.14.45
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.43 to 0.14.45.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.14.43...v0.14.45)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 22:06:38 +00:00
dependabot[bot]
db1607c9f2
Bump prettier from 2.6.2 to 2.7.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.2 to 2.7.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.2...2.7.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 22:04:54 +00:00
Oliver Blanthorn
fd1674a000
Fix #4259: add --focus-address-bar flag to tabopen 2022-06-14 13:37:00 +02:00
Oliver Blanthorn
26f146545b
Merge pull request #4268 from tridactyl/dependabot/npm_and_yarn/marked-4.0.17
Bump marked from 4.0.16 to 4.0.17
2022-06-14 13:13:59 +02:00
Oliver Blanthorn
b9cd06dd9c
Merge pull request #4267 from tridactyl/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-tslint-5.28.0
Bump @typescript-eslint/eslint-plugin-tslint from 5.27.1 to 5.28.0
2022-06-14 13:13:44 +02:00
dependabot[bot]
5e25b5e195
Bump marked from 4.0.16 to 4.0.17
Bumps [marked](https://github.com/markedjs/marked) from 4.0.16 to 4.0.17.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v4.0.16...v4.0.17)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 22:08:43 +00:00
dependabot[bot]
f31cea54cb
Bump @typescript-eslint/eslint-plugin-tslint from 5.27.1 to 5.28.0
Bumps [@typescript-eslint/eslint-plugin-tslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin-tslint) from 5.27.1 to 5.28.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin-tslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.28.0/packages/eslint-plugin-tslint)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin-tslint"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 22:06:56 +00:00
Oliver Blanthorn
4ab994f14a
Merge pull request #4266 from tridactyl/dependabot/npm_and_yarn/async-3.2.4
Bump async from 3.2.0 to 3.2.4
2022-06-10 21:43:04 +02:00
Oliver Blanthorn
a141f08d78
Merge pull request #4250 from tridactyl/dependabot/npm_and_yarn/selenium-webdriver-and-types/selenium-webdriver-4.2.0
Bump selenium-webdriver and @types/selenium-webdriver
2022-06-10 21:36:04 +02:00
dependabot[bot]
0de8120014
Bump async from 3.2.0 to 3.2.4
Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v3.2.0...v3.2.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-10 19:35:27 +00:00