Skip to content

Commit e2d0647

Browse files
authored
V0.7.0 (#303)
* Update Changelog * Update "What's New" page * Update Readme * Update version in manifest * Update Safari project
1 parent c9c636e commit e2d0647

File tree

7 files changed

+136
-144
lines changed

7 files changed

+136
-144
lines changed

CHANGELOG.md

+27-18
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
All notable changes to the Rango extension will be documented in this file.
44

5+
## [0.7.0](https://github.com/david-tejada/rango/releases/tag/v0.7.0) - 2024-06-17
6+
7+
### Added
8+
9+
- Add setting to always compute hintables.
10+
- Add command for performing action on an element fuzzy searching its text.
11+
- Add ability to customize custom selectors from the settings page.
12+
- Add setting for notifying or not when toggling hints.
13+
- Add command for hiding a specific hint.
14+
- Add command to save a reference to the active element.
15+
16+
### Fixed
17+
18+
- Fix issue with elements not triggering intersection when within
19+
`positioned: fixed` element.
20+
- Fix hints being read out when using Microsoft Edge Read Aloud function.
21+
- Make hints and keys to exclude settings case insensitive.
22+
- Fix crown not taking account sticky headers with smooth scrolling.
23+
- Fix Discord's internal links opening in a new tab.
24+
- Fix "go input" not working when the hints are off.
25+
- Fix slowness on startup caused by having to reload discarded tabs for
26+
refreshing tab marker.
27+
28+
### Changed
29+
30+
- Allow smaller hint font size.
31+
532
## [0.6.3](https://github.com/david-tejada/rango/releases/tag/v0.6.3) - 2024-2-2
633

734
### Added
@@ -488,21 +515,3 @@ All notable changes to the Rango extension will be documented in this file.
488515

489516
If you update to this version remember to update
490517
[rango-talon](https://github.com/david-tejada/rango-talon)
491-
492-
### Added
493-
494-
- Rango now supports iframes!
495-
- Added commands for changing hints size: `hint bigger` and `hint smaller`
496-
- More ways to toggle hints on and off:
497-
- With the shortcut `ctrl-shift-space`
498-
- Clicking the extension button in the browser toolbar
499-
500-
### Changed
501-
502-
- Reduced displayHints timeout for added snappiness
503-
504-
### Fixed
505-
506-
- Fix hints position not being calculated properly on some pages
507-
[#8](https://github.com/david-tejada/rango/issues/8)
508-
- Fix hints not returning to its original size after clicking

Rango/Rango for Safari.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
buildSettings = {
519519
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/Rango.entitlements";
520520
CODE_SIGN_STYLE = Automatic;
521-
CURRENT_PROJECT_VERSION = 11;
521+
CURRENT_PROJECT_VERSION = 12;
522522
DEAD_CODE_STRIPPING = YES;
523523
ENABLE_HARDENED_RUNTIME = YES;
524524
GENERATE_INFOPLIST_FILE = YES;
@@ -549,7 +549,7 @@
549549
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/Rango.entitlements";
550550
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
551551
CODE_SIGN_STYLE = Automatic;
552-
CURRENT_PROJECT_VERSION = 11;
552+
CURRENT_PROJECT_VERSION = 12;
553553
DEAD_CODE_STRIPPING = YES;
554554
ENABLE_HARDENED_RUNTIME = YES;
555555
GENERATE_INFOPLIST_FILE = YES;
@@ -583,7 +583,7 @@
583583
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Rango.entitlements";
584584
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
585585
CODE_SIGN_STYLE = Automatic;
586-
CURRENT_PROJECT_VERSION = 11;
586+
CURRENT_PROJECT_VERSION = 12;
587587
DEAD_CODE_STRIPPING = YES;
588588
ENABLE_HARDENED_RUNTIME = YES;
589589
GENERATE_INFOPLIST_FILE = YES;
@@ -619,7 +619,7 @@
619619
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Rango.entitlements";
620620
CODE_SIGN_IDENTITY = "Apple Development";
621621
CODE_SIGN_STYLE = Automatic;
622-
CURRENT_PROJECT_VERSION = 11;
622+
CURRENT_PROJECT_VERSION = 12;
623623
DEAD_CODE_STRIPPING = YES;
624624
ENABLE_HARDENED_RUNTIME = YES;
625625
GENERATE_INFOPLIST_FILE = YES;

readme.md

+59-8
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,9 @@ will work even when the hints are off.
384384
#### Save References
385385

386386
- `mark <target> as <word>`: Saves a reference to the element with the specified
387-
hint and assign it to the specified word.
387+
hint and assigns it to the specified word.
388+
- `mark this as <word>`: Saves a reference to the focused element and assigns it
389+
to the specified word.
388390
- `mark show`: Shows the visible saved references current in the page.
389391
- `mark clear <word>`: Remove the reference corresponding to the specified word.
390392

@@ -400,7 +402,7 @@ In order to use the saved references in scripting you need to use the talon
400402
action `user.rango_run_action_on_reference`. This action accept two arguments:
401403
the name of the action and the name of the reference.
402404

403-
Following is a simple example of command that clicks the element with the
405+
Following is a simple example of a command that clicks the element with the
404406
reference `edit`:
405407

406408
```talon
@@ -414,6 +416,47 @@ use references. These will be active when editing `.talon` files.
414416
- `focus rango mark <word>`
415417
- `hover rango mark <word>`
416418

419+
### Fuzzy Search Elements
420+
421+
Similar to custom references you can also target elements by their text content
422+
using fuzzy search. This can also be used for scripting purposes with the
423+
advantage that there is no need to previously save a reference to the element.
424+
425+
#### Using Fuzzy Search Directly to Run Actions on Elements
426+
427+
- `follow <text>`: Click the element that better matches the provided text. It
428+
prioritizes elements within the viewport. Any element within the viewport will
429+
have priority over other elements outside of the viewport with better
430+
fuzziness score.
431+
- `button <text>`: Click the element that better matches the provided text. It
432+
doesn't take into account if the element is within or outside the viewport. It
433+
will simply click the element in the document with the best fuzziness score.
434+
- `focus text <text>`: Focus the element that better matches the provided text.
435+
It prioritizes elements within the viewport.
436+
- `hover text <text>`: Hover the element that better matches the provided text.
437+
It prioritizes elements within the viewport.
438+
439+
#### Scripting Using Fuzzy Search
440+
441+
In order to use fuzzy search in scripting you need to use the talon action
442+
`user.rango_run_action_on_text_matched_element`. This action accepts three
443+
arguments: the name of the action, the text searched and whether to prioritize
444+
elements within the viewport or not (optional, defaults to false).
445+
446+
Following is a simple example of a command that clicks the element that better
447+
matches the text "edit" anywhere in the document.
448+
449+
```talon
450+
edit this: user.rango_run_action_on_text_matched_element("clickElement", "edit", false)
451+
```
452+
453+
There are also a few talon helpers that will make easier to create commands
454+
using fuzzy search. These will be active when editing `.talon` files.
455+
456+
- `click rango text <text>`
457+
- `focus rango text <text>`
458+
- `hover rango text <text>`
459+
417460
### Modify Hints Size
418461

419462
- `hint bigger`: Increase the size of the hints.
@@ -532,43 +575,43 @@ In [this page](https://forvo.com/word/define/#en) we have this section which
532575
unfortunately doesn't show any hints.
533576

534577
<p align="left">
535-
<img src="images/screenshot-custom-hints-1.png" height=70px">
578+
<img src="images/screenshot-custom-hints-1.png" alt="">
536579
</p>
537580

538581
Now we use the command `hint extra` to greedily display hints.
539582

540583
<p align="left">
541-
<img src="images/screenshot-custom-hints-2.png" height=70px">
584+
<img src="images/screenshot-custom-hints-2.png" alt="">
542585
</p>
543586

544587
If we wanted to show hints for the gray links we can issue the command
545588
`include cap each and cap drum`, which marks in green the hints that will be
546589
included.
547590

548591
<p align="left">
549-
<img src="images/screenshot-custom-hints-3.png" height=70px">
592+
<img src="images/screenshot-custom-hints-3.png" alt="">
550593
</p>
551594

552595
Since the result is not exactly what we want and there are still hints missing
553596
we use the command `some more`.
554597

555598
<p align="left">
556-
<img src="images/screenshot-custom-hints-4.png" height=70px">
599+
<img src="mimages/screenshot-custom-hints-4.png" alt="">
557600
</p>
558601

559602
Now there are more hints showing but they're not the ones we want. We issue the
560603
command `some more` again to see if that helps.
561604

562605
<p align="left">
563-
<img src="images/screenshot-custom-hints-5.png" height=70px">
606+
<img src="images/screenshot-custom-hints-5.png" alt="">
564607
</p>
565608

566609
The hints marked for inclusion now are exactly the ones we want. We could
567610
continue including more custom hints using the `include` command again but for
568611
the moment we leave it like that and save with `custom hints save`.
569612

570613
<p align="left">
571-
<img src="images/screenshot-custom-hints-6.png" height=330px">
614+
<img src="images/screenshot-custom-hints-6.png" alt="">
572615
</p>
573616

574617
Now the extra hints disappear and we are left with the custom hints that we just
@@ -600,6 +643,14 @@ Here is a summary of all the commands for customizing hints:
600643
inclusion/exclusion so that they render by default.
601644
- `custom hints reset`: Remove any previously included/excluded custom hints.
602645

646+
Custom hints can also be edited, added or removed from the settings page.
647+
648+
#### Hiding a Particular Hint
649+
650+
On occasions a hint might be obscured by another hint that is stacked on top of
651+
the first one. For those occasions you can use the command `hide <target>` to
652+
hide the hint on top.
653+
603654
## Known Issues and Limitations
604655

605656
There is currently no way to open a pure CSS dropdown menu like the "hover" menu

src/mv2-safari/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Rango",
3-
"version": "0.6.3",
3+
"version": "0.7.0",
44
"description": "Extension that allows you to interact with webpages using only your keyboard or your voice and talon",
55
"homepage_url": "https://github.com/david-tejada/rango",
66
"manifest_version": 2,

src/mv2/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Rango",
3-
"version": "0.6.3",
3+
"version": "0.7.0",
44
"description": "Extension that allows you to interact with webpages and the browser using your voice and talon or your keyboard",
55
"homepage_url": "https://github.com/david-tejada/rango",
66
"manifest_version": 2,

src/mv3/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Rango",
3-
"version": "0.6.3",
3+
"version": "0.7.0",
44
"description": "Extension that allows you to interact with webpages and the browser using your voice and talon or your keyboard",
55
"homepage_url": "https://github.com/david-tejada/rango",
66
"manifest_version": 3,

0 commit comments

Comments
 (0)