Commit graph

6738 commits

Author SHA1 Message Date
Oliver Blanthorn
cff50597bf
Fix #4403: ensure bypassFocusHack is not left undefined 2022-10-01 18:01:32 +02:00
Oliver Blanthorn
22b2e9cb42
Fix #4384: remove excmd from bind completions 2022-09-30 16:03:10 +02:00
Oliver Blanthorn
83933db227
Fix filenames in beta updater (#4399) 2022-09-30 11:12:31 +02:00
Oliver Blanthorn
239ea5925c
Merge pull request #4385 from tridactyl/dependabot/npm_and_yarn/selenium-webdriver-and-types/selenium-webdriver-4.4.0
Bump selenium-webdriver and @types/selenium-webdriver
2022-09-14 14:40:33 +01:00
Oliver Blanthorn
f914987841
Merge pull request #2917 from fluem/pretty_tab_status_symbols
Add more status symbols to tab list
2022-09-14 09:49:39 +01:00
Oliver Blanthorn
a86a942f52
Merge branch 'master' into pretty_tab_status_symbols 2022-09-14 10:15:57 +02:00
dependabot[bot]
bcc4fc7bca
Bump selenium-webdriver and @types/selenium-webdriver
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) and [@types/selenium-webdriver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/selenium-webdriver). These dependencies needed to be updated together.

Updates `selenium-webdriver` from 4.2.0 to 4.4.0
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.2.0...selenium-4.4.0)

Updates `@types/selenium-webdriver` from 4.1.1 to 4.1.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/selenium-webdriver)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: "@types/selenium-webdriver"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 07:54:27 +00:00
Oliver Blanthorn
a62ec5c135
Merge pull request #4380 from tridactyl/dependabot/npm_and_yarn/esbuild-0.15.7
Bump esbuild from 0.14.47 to 0.15.7
2022-09-14 08:53:58 +01:00
Oliver Blanthorn
648eb71fa6
Merge pull request #4382 from tridactyl/dependabot/npm_and_yarn/moment-2.29.4
Bump moment from 2.29.2 to 2.29.4
2022-09-14 08:53:23 +01:00
Oliver Blanthorn
e381178387
Merge pull request #4338 from tridactyl/dependabot/npm_and_yarn/selenium-webdriver-and-types/selenium-webdriver-4.4.0
Bump selenium-webdriver and @types/selenium-webdriver
2022-09-14 08:53:06 +01:00
Oliver Blanthorn
25f0ade042
Merge pull request #4300 from tridactyl/dependabot/npm_and_yarn/geckodriver-3.0.2
Bump geckodriver from 3.0.1 to 3.0.2
2022-09-14 08:52:46 +01:00
Oliver Blanthorn
accc7c6f2c
Merge pull request #4383 from tridactyl/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-tslint-5.37.0
Bump @typescript-eslint/eslint-plugin-tslint from 5.29.0 to 5.37.0
2022-09-14 08:52:36 +01:00
Oliver Blanthorn
67988b9a22
Merge pull request #4374 from tridactyl/dependabot/npm_and_yarn/marked-4.1.0
Bump marked from 4.0.17 to 4.1.0
2022-09-14 08:52:19 +01:00
dependabot[bot]
589b1087bc
Bump @typescript-eslint/eslint-plugin-tslint from 5.29.0 to 5.37.0
Bumps [@typescript-eslint/eslint-plugin-tslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin-tslint) from 5.29.0 to 5.37.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.37.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-09-12 22:23:42 +00:00
dependabot[bot]
931a8b7e25
Bump selenium-webdriver and @types/selenium-webdriver
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) and [@types/selenium-webdriver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/selenium-webdriver). These dependencies needed to be updated together.

Updates `selenium-webdriver` from 4.2.0 to 4.4.0
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.2.0...selenium-4.4.0)

Updates `@types/selenium-webdriver` from 4.1.1 to 4.1.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/selenium-webdriver)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: "@types/selenium-webdriver"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-10 17:36:40 +00:00
dependabot[bot]
2b027a0f28
Bump geckodriver from 3.0.1 to 3.0.2
Bumps [geckodriver](https://github.com/vladikoff/node-geckodriver) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/vladikoff/node-geckodriver/releases)
- [Commits](https://github.com/vladikoff/node-geckodriver/compare/v3.0.1...v3.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-10 17:33:37 +00:00
dependabot[bot]
32fd2fb4e9
Bump moment from 2.29.2 to 2.29.4
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-10 17:30:28 +00:00
Oliver Blanthorn
0177c1b246
Merge pull request #4334 from tridactyl/dependabot/npm_and_yarn/eslint-plugin-sonarjs-0.15.0
Bump eslint-plugin-sonarjs from 0.13.0 to 0.15.0
2022-09-10 18:30:14 +01:00
Oliver Blanthorn
7d5cd3f832
Merge pull request #4335 from tridactyl/dependabot/npm_and_yarn/eslint-plugin-jsdoc-39.3.6
Bump eslint-plugin-jsdoc from 39.3.3 to 39.3.6
2022-09-10 18:30:03 +01:00
Oliver Blanthorn
3e6386838c
Merge pull request #4348 from tridactyl/dependabot/npm_and_yarn/web-ext-7.2.0
Bump web-ext from 7.1.0 to 7.2.0
2022-09-10 18:29:43 +01: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
Oliver Blanthorn
355b47cc33
Merge pull request #4381 from mark2185/master
Update docs
2022-09-06 13:20:59 +02:00
Oliver Blanthorn
d9e2e29877
Fix links in :tutor 2022-09-06 12:53:07 +02:00
Luka Markušić
4ede950ee1 Update docs
All the clippy files are markdown files, not html
2022-09-06 10:01:54 +02:00
dependabot[bot]
850e8b96ac
Bump esbuild from 0.14.47 to 0.15.7
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.47 to 0.15.7.
- [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.47...v0.15.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 22:03:38 +00: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
Oliver Blanthorn
abfc339136
Merge pull request #4363 from GHolk/expand-searchurl-recursively
Add recursive expansion to searchurls and jsurls
2022-09-02 17:02:59 +02:00
Oliver Blanthorn
49fd5b8e5b
Add docs for searchurl aliases 2022-09-02 17:01:21 +02: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
Oliver Blanthorn
51b5d4e489
Merge pull request #4339 from GHolk/visualexitauto-collapse
Fix wrong empty selection detect
2022-09-02 15:52:56 +02: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
dependabot[bot]
698932dafb
Bump marked from 4.0.17 to 4.1.0
Bumps [marked](https://github.com/markedjs/marked) from 4.0.17 to 4.1.0.
- [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.17...v4.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 22:06:36 +00: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
Gold Holk
1d7795f40a Add recursive expansion to searchurls and jsurls
Therefore we can have alias in searchurls and jsurls just like alias
2022-08-22 20:43:49 +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
dependabot[bot]
b10a5d1891
Bump web-ext from 7.1.0 to 7.2.0
Bumps [web-ext](https://github.com/mozilla/web-ext) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/mozilla/web-ext/releases)
- [Commits](https://github.com/mozilla/web-ext/compare/7.1.0...7.2.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-08-12 22:14:04 +00:00
Gold Holk
1015f540d1
Fix wrong empty selection detect
The anchorOffset and the focusOffset are counted from the anchorNode and the focusNode.
They may be different node, so a same offset does not mean empty selection.
Just isCollapsed is enough.
2022-08-10 11:18:32 +08:00
dependabot[bot]
b56c40db05
Bump eslint-plugin-jsdoc from 39.3.3 to 39.3.6
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 39.3.3 to 39.3.6.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v39.3.3...v39.3.6)

---
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-08-08 22:13:54 +00:00
dependabot[bot]
8ab8488b16
Bump eslint-plugin-sonarjs from 0.13.0 to 0.15.0
Bumps [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) from 0.13.0 to 0.15.0.
- [Release notes](https://github.com/SonarSource/eslint-plugin-sonarjs/releases)
- [Commits](https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.13.0...0.15.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-sonarjs
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 22:13:11 +00:00
Oliver Blanthorn
ed5633d2ac
Merge pull request #4328 from GHolk/tabhistory-style
Fix timestamp in completion of back command for shydactyl
2022-08-04 06:11:31 +01: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