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
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
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
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
4cfb4b613b
Merge pull request #3540 from Rummskartoffel/source-data-urls
...
Fix data URIs not being :source-able
2021-04-02 07:24:59 +01:00
Oliver Blanthorn
195e7a95a2
Merge pull request #3541 from Rummskartoffel/guiset-error
...
Improve error message from :guiset on malformed userChrome.css
2021-04-02 07:24:23 +01:00
Oliver Blanthorn
6ebe623028
Compact userChrome error
2021-04-02 07:24:09 +01:00
Rummskartoffel
0a76d174af
Improve error message from :guiset on malformed userChrome.css
2021-04-01 19:44:49 +02:00
Rummskartoffel
b8317819c1
Fix data URIs not being :source-able
2021-04-01 00:06:18 +02:00
Rummskartoffel
4a4a095f6d
Use jsonview() for :viewcontainers
2021-03-31 23:11:12 +02:00
Oliver Blanthorn
245941b0b9
Merge pull request #3513 from Rummskartoffel/focus-img
...
Allow focusing img elements using `hint -;`
2021-03-23 22:44:33 +00:00
Rummskartoffel
eaa7bd4227
Allow focusing img elements using hint -;
2021-03-23 22:39:27 +01:00
Rummskartoffel
34f483d967
Make :hint -y
more sensible
...
* Only hint Anchors that have a meaningful `href`
* Properly `yank` instead of going through the excmd parser
2021-03-22 22:50:34 +01:00
Oliver Blanthorn
1f7ea2c9ed
Clarify viewconfig help
2021-03-20 17:13:43 +01:00
Oliver Blanthorn
b71eedf4bb
Update src/excmds.ts
...
Co-authored-by: Rummskartoffel <20257197+Rummskartoffel@users.noreply.github.com>
2021-03-20 15:53:42 +00:00
Oliver Blanthorn
96a96e0cb1
Add POC jsonviewer that works anywhere
2021-03-18 14:56:39 +01:00
WorldCodeCentral
822ba3e3db
Document hint -W open
2021-03-18 13:34:08 +01:00
Oliver Blanthorn
c481d0c8e9
Expose waitForDom with tabopen -w
2021-03-17 18:57:35 +01:00
Oliver Blanthorn
df8a745f62
Merge pull request #3362 from tridactyl/gsbabil_saveas_tidier
...
Add --overwrite and --cleanup options to 'saveas'
2021-03-13 12:42:48 +00:00
Oliver Blanthorn
7b709264b5
Prettify src/excmds.ts
2021-03-13 13:33:11 +01:00
Oliver Blanthorn
17368e6fbb
Add radix parameter
2021-03-13 13:32:00 +01:00
Oliver Blanthorn
8ed5ea9089
Switch to RegEx.test to cheer up eslint
2021-03-13 13:29:32 +01:00
Oliver Blanthorn
28b3c3d255
Fix missing repeated words bug and incorrect gate
2021-03-13 13:22:26 +01:00
Oliver Blanthorn
df67b1c2ff
Pretty unrelated lines
2021-03-13 13:08:11 +01:00
Oliver Blanthorn
4fbe211a71
Improve :saveas docs
2021-03-13 13:07:40 +01:00
Oliver Blanthorn
2ed22b31d4
Throw an error if incompatible flags are used
2021-03-13 12:55:10 +01:00
Oliver Blanthorn
e8aef3eb99
Move success message to interactive code
2021-03-13 12:55:09 +01:00
Babil G. Sarwar
9cd88c9dc5
Improve compatiblity for Python and Nim Messengers
2021-03-13 12:55:09 +01:00
Babil G. Sarwar
cb32af182b
Add --overwrite and --cleanup options to 'saveas'
2021-03-13 12:55:08 +01:00
Rummskartoffel
7f2d5a0c77
Respect ARIA role "textbox" for input selection
...
Fixes #1069 and probably a bunch of other sites that may or may not have
their own issues already reported.
2021-03-12 16:59:50 +01:00
Rummskartoffel
5e647c3e18
Remove outdated comment
...
Fixes #2441
2021-03-10 16:58:52 +01:00
Dhruva Sambrani
507be18665
Fix documentation
2021-03-10 13:21:41 +05:30
Oliver Blanthorn
b7ba379b71
Restore important source of humour
2021-03-09 15:24:09 +01:00
Dhruva Sambrani
84b4e9d64d
Update src/excmds.ts to fix documentation
...
Co-authored-by: Oliver Blanthorn <freedom4cows@gmail.com>
2021-03-05 02:14:33 +05:30
Dhruva Sambrani
57df8d24d2
Update excmds.ts
2021-03-05 00:33:26 +05:30
Jez Cope
ba6297734a
Update Matrix link in excmds.ts
2021-03-04 15:47:38 +00:00
Rummskartoffel
45ac1f107f
Native, Windows: fix updating ( #3397 )
...
Fix quoting in 'nativeinstallcmd'. This should also work with the old
Python version, but is not yet tested.
In :updatenative, decide what to do based on messenger version:
- if on Python, use Native.run()
- if on broken version, throw error
- if on fixed version, use Native.runAsync()
Version numbers may need to be adjusted before merge. Should be merged
simultaneously with Linux fix to simplify version checking.
2021-02-24 16:03:21 +01:00
Oliver Blanthorn
191ac7c067
Improve escapehatch help
2021-02-22 11:21:12 +01:00
Oliver Blanthorn
ab5be37cff
Improve keymap help
2021-02-22 09:40:07 +01:00