glacambre
37d841df2c
Enable accessorless access to tab processes
...
This commit enables accessing content script values directly, like this:
(await tri.tabs[3].document.location.href)
tri.tabs[6].document.title = "New title!"
tri.tabs[9].tri.excmds.js("document.getElementById('blah').textContent").then(console.log)
Note that setting values, as shown in the above document.title example
above, cannot be synchronously, i.e. there is no way to wait for the
value to have been written is the content process before the background
process moves on to the next instruction. This is considered okay as
writing to the content process synchronously can be done with
(await tri.excmds.js("document.title = 'New title!'")) instead.
At the moment, accessing all tabs by not specifying an index in tri.tabs
is still not supported.
2024-01-24 07:49:57 +01:00
glacambre
3806445d85
Implement basic proxy providing easy access to tabs from background
...
This commit implements a basic proxy enabling access to arbitrary
values/functions in tabs from the background script, like this:
tri.tabs[3].document.title.get().then(console.log)
tri.tabs[3].document.title.set("New title!").then(console.log)
tri.tabs[9].alert.apply("Hello world!")
tri.tabs[12].tri.excmds.js.apply("alert('Hello world!')")
Ease of implementation was chosen above ease of use. Enabling reading,
writing and calling directly through property accesses instead of
forcing the use of .get()/.set()/.apply() will be attempted in another
commit.
2024-01-24 07:49:57 +01:00
Oliver Blanthorn
d59a9d96bb
Merge pull request #4892 from chrishollandaise/sed-portable-lint
...
Add additional sh lint check for incompatible sed -i cases
2024-01-23 19:00:17 +00:00
Oliver Blanthorn
61c302e0c0
Fix lint issues
2024-01-23 19:57:53 +01:00
Chris Holland
2990bd0538
add sed -i lint check to ensure portability
2024-01-20 14:35:10 -08:00
Oliver Blanthorn
dd535a4e32
Merge pull request #4791 from petoncle/fix-wrong-behavior-of-tabopen-with-containers
...
Fix wrong behavior of :tabopen with containers
2023-12-16 19:20:30 +00:00
Oliver Blanthorn
159d1ec0c0
Merge pull request #4844 from jumper047/feature/next-prev-line
...
Add functions to move cursor up and down in text areas
2023-12-16 19:18:18 +00:00
Oliver Blanthorn
ec342c4839
Merge pull request #4809 from petoncle/attempt-to-buffer-keyboard-events-until-commandline-opened
...
Reduce likelihood of losing characters while command line is opening
2023-12-16 19:01:00 +00:00
petoncle
ac7d7e577b
Buffer page keys only for commands that open and focus the cmdline
2023-12-16 18:41:15 +01:00
Oliver Blanthorn
2c0798ffe5
Fix changelog typo
2023-12-16 14:28:24 +01:00
Oliver Blanthorn
a067100752
Merge pull request #4871 from tridactyl/dependabot/npm_and_yarn/mozilla/readability-0.5.0
...
Bump @mozilla/readability from 0.4.4 to 0.5.0
2023-12-16 13:18:53 +00:00
dependabot[bot]
f26668d738
Bump @mozilla/readability from 0.4.4 to 0.5.0
...
Bumps [@mozilla/readability](https://github.com/mozilla/readability ) from 0.4.4 to 0.5.0.
- [Changelog](https://github.com/mozilla/readability/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mozilla/readability/compare/0.4.4...0.5.0 )
---
updated-dependencies:
- dependency-name: "@mozilla/readability"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 22:57:49 +00:00
Oliver Blanthorn
38c78b05b7
Merge pull request #4819 from tridactyl/dependabot/npm_and_yarn/eslint-plugin-sonarjs-0.23.0
...
Bump eslint-plugin-sonarjs from 0.21.0 to 0.23.0
2023-12-15 13:29:25 +00:00
Oliver Blanthorn
c0ef2e59aa
Merge pull request #4869 from tridactyl/dependabot/npm_and_yarn/web-ext-7.9.0
...
Bump web-ext from 7.8.0 to 7.9.0
2023-12-15 13:29:14 +00:00
dependabot[bot]
a3bb7579f3
Bump web-ext from 7.8.0 to 7.9.0
...
Bumps [web-ext](https://github.com/mozilla/web-ext ) from 7.8.0 to 7.9.0.
- [Release notes](https://github.com/mozilla/web-ext/releases )
- [Commits](https://github.com/mozilla/web-ext/compare/7.8.0...7.9.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>
2023-12-12 22:38:17 +00:00
Oliver Blanthorn
304e5941bb
Cheer up linter
2023-12-12 19:32:07 +01:00
Oliver Blanthorn
72dfbddf3f
release 1.24.0
2023-12-12 19:17:17 +01:00
Oliver Blanthorn
e14e474aca
Update changelog for 1.24.0
2023-12-12 19:17:17 +01:00
Oliver Blanthorn
916bd01e73
Rejig donations text on new tab
2023-12-12 19:17:17 +01:00
Oliver Blanthorn
e68589f2a5
Merge pull request #4865 from tridactyl/dependabot/npm_and_yarn/esbuild-0.19.9
...
Bump esbuild from 0.17.19 to 0.19.9
2023-12-12 17:02:25 +00:00
Oliver Blanthorn
5727425ecf
Merge pull request #4867 from dcaixinha/make-tabgrab-and-tabpush-move-to-next-tab
...
Make `tabgrab` and `tabpush` move to next tabgrab
2023-12-12 17:01:47 +00:00
Daniel Caixinha
1e0fdf43a3
Make tabgrab
and tabpush
move to next tabgrab
...
Now `tabgrab` and `tabpush` will move the tab next to the current tab, except if
the `tabopenpos` setting is set to `"last"`.
In order to make `tabpush` work, I had to create an additional function to get
the active tab for a given window ID.
2023-12-12 11:09:13 +00:00
dependabot[bot]
d0cf34497b
Bump esbuild from 0.17.19 to 0.19.9
...
Bumps [esbuild](https://github.com/evanw/esbuild ) from 0.17.19 to 0.19.9.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.17.19...v0.19.9 )
---
updated-dependencies:
- dependency-name: esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 22:59:34 +00:00
Oliver Blanthorn
b5507f3b80
Stop text2qr overflowing past window dimensions
2023-12-04 13:02:46 +01:00
Dmitrii Pshonko
a2f4d942dc
Add functions to move cursor up and down in text areas
...
Functions were extracted from @GHolk config, many cudos for him!
2023-12-04 01:12:16 +03:00
Oliver Blanthorn
f13f16cc5d
Amend Memrise links ( #4231 )
2023-11-20 15:25:56 +01:00
Oliver Blanthorn
c956c3fcf4
Revert "Remove references to broken Memrise course #4231 "
...
This reverts commit 36b02d5a29
.
2023-11-20 15:23:07 +01:00
Oliver Blanthorn
36b02d5a29
Remove references to broken Memrise course #4231
2023-11-20 13:32:49 +01:00
Oliver Blanthorn
ca566af246
Bump native version to 0.4.1
2023-11-20 13:30:22 +01:00
Oliver Blanthorn
122ae80d46
Merge pull request #4821 from GHolk/source-clipboard
...
allow source tridactylrc from clipboard or string arguments
2023-11-20 11:40:48 +00:00
Oliver Blanthorn
a143c09442
Merge pull request #4839 from tridactyl/dependabot/npm_and_yarn/marked-10.0.0
...
Bump marked from 9.1.6 to 10.0.0
2023-11-19 15:04:12 +00:00
Oliver Blanthorn
f968dad4bf
Merge pull request #4842 from petoncle/keep-default-hints
...
Exclude default hints from hint -pipe
2023-11-19 15:03:11 +00:00
Oliver Blanthorn
95b2869294
Add GitHub gi bind to RC
2023-11-19 14:23:55 +01:00
Oliver Blanthorn
f8aafebfce
Replace txti.es with privatebin: fix #4705
2023-11-19 14:20:39 +01:00
Oliver Blanthorn
e6b1c0d412
Fix typo
2023-11-19 14:18:41 +01:00
Oliver Blanthorn
a8d6b9bf9b
Add when_feature helper
2023-11-19 14:00:55 +01:00
Oliver Blanthorn
105d8bfc34
Revert "Bump compute-scroll-into-view from 3.0.0 to 3.1.0"
...
This reverts commit 8b1a354ed9
.
Fixes #4838
2023-11-19 13:09:36 +01:00
petoncle
5cfe460a81
Exclude default hints from hint -pipe
...
-pipe is the flag other than -c for which default hints should be excluded
2023-11-15 16:12:18 +01:00
dependabot[bot]
05ab7d5b6c
Bump marked from 9.1.6 to 10.0.0
...
Bumps [marked](https://github.com/markedjs/marked ) from 9.1.6 to 10.0.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/v9.1.6...v10.0.0 )
---
updated-dependencies:
- dependency-name: marked
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-14 22:06:32 +00:00
Oliver Blanthorn
3bd497c8f0
Merge pull request #4837 from tridactyl/dependabot/npm_and_yarn/prettier-3.1.0
...
Bump prettier from 3.0.3 to 3.1.0
2023-11-14 13:48:05 +00:00
dependabot[bot]
3a0689a369
Bump prettier from 3.0.3 to 3.1.0
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.0.3 to 3.1.0.
- [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/3.0.3...3.1.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 22:38:47 +00:00
Oliver Blanthorn
81f111f14b
Merge pull request #4351 from GHolk/urlparent-ignore-more
...
More options for urlparent to ignore fragment, search and index.html
2023-11-13 11:13:21 +00:00
gholk
b30e2b105e
Run pretty as git hook require
...
I do not want the prettify and the feature change inside a
same commit, so this is a commit contain only the prettify.
2023-11-13 11:57:36 +01:00
gholk
e375417cd4
Change urlparentignoreindexhtml into urlparentignorepathregexp
...
Make user be able to customize the path to remove before
go to the parent path.
2023-11-13 11:56:15 +01:00
gholk
dbcc21c425
Add default values and docs for new urlparent options
...
All default values are set to false to keep the behavior unchanged.
Also correct the typescript type error.
2023-11-13 11:56:15 +01:00
Gold Holk
b79aee8726
Make excmd urlparent use new getUrlParent function
...
Rewrite the config reading with a loop.
2023-11-13 11:56:15 +01:00
Gold Holk
401a36869d
urlparent ignore search fragment and index.html
...
replace trailingSlash with the option dict.
option contain trailingSlash, ignoreFragment, ignoreSearch and ignoreIndexHtml.
If `ignore*` present, remove it will not cause count decrement.
2023-11-13 11:56:09 +01:00
dependabot[bot]
7215c4dd62
Bump eslint-plugin-sonarjs from 0.21.0 to 0.23.0
...
Bumps [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs ) from 0.21.0 to 0.23.0.
- [Release notes](https://github.com/SonarSource/eslint-plugin-sonarjs/releases )
- [Commits](https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.21.0...0.23.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>
2023-11-13 10:16:37 +00:00
Oliver Blanthorn
a1f41f2b5e
Merge pull request #4828 from amirHossein5/patch-1
...
Fix command name in docs
2023-11-13 10:14:38 +00:00
Oliver Blanthorn
d8f8c8e6d4
Merge pull request #4829 from tridactyl/dependabot/npm_and_yarn/eslint-plugin-jsdoc-46.9.0
...
Bump eslint-plugin-jsdoc from 44.2.7 to 46.9.0
2023-11-13 10:14:12 +00:00