-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configurable number prefix without mouse grid #1342
configurable number prefix without mouse grid #1342
Conversation
jaresty
commented
Dec 27, 2023
- Attempt to implement optional numb prefix
- The tags need to be logically combined
- Respond to suggestion that the mouse grid should not be considered
- some of the feedback on the PR was that there was unnecessary complexity in the tagging
Thanks for your patience. I've pushed some changes that I think are more in line with what @auscompgeek originally
|
I guess one remaining question is if we should set the tag by default or not. |
my preference would be for the recommended behavior (I.e. not requiring the prefix) be the default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks ok to me. tempted to have it on by default, but then we'd need to do some kind of deprecation process
also, double negatives always confuse me. I wonder if we should have a allow_unprefixed_numbers
tag that is turned on by default in settings, and the user can comment it out if they don't want unprefixed numbers
I considered that but since mouse grid needs to disable non prefixed numbers to use its own nonprefixed number commands, it seemed simpler to have a disable tag. Maybe there is a good way for mouse grid to remove the tag when it activates? I don't recall off hand if you can just shut off a a tag like that. |
fwiw I'm happy to have prefixed the default as well. random thought, but for deprecating stuff I almost wonder if we should introduce a deprecated notification action that pops a notification only the first time you use a deprecated command after starting talon (or every N times maybe), but that also spams the logs on every use. that way it's easier for less technical users to find out (since I suspect many don't read the logs), but still in a way thats not too spammy. it would be useful here and for future depreciation I suspect. |
I believe that kind of thing is already covered by our deprecation infrastructure / policy decoumentation |
core/numbers/numbers.py
Outdated
@@ -177,6 +177,7 @@ def split_list(value, l: list) -> Iterator: | |||
number_small_map = {n: i for i, n in enumerate(number_small_list)} | |||
|
|||
mod.list("number_small", desc="List of small numbers") | |||
mod.tag("disable_unprefixed_numbers", desc="Require prefix when saying a number") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might suggest just calling this "prefixed_numbers"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See other comment about why it's this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could call it "numbers must be prefixed" if the double negative is too confusing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll update it to be non-double negative tag then. user.prefix_numbers or user.numbers_must_be_prefixed? I think I prefer the latter because it's a bit more self explanatory, but good with whatever others prefer.
I agree the prefix should be the default to improve compatibility with cursorless / reduce misrecognitions |
makes sense, tho in that case we should prob use command deprecation infra so it doesn't just break when user updates? |
Thanks for the reminder. I just added the relevant updates. Of course wording and such will be subject what tag ends up being settled on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left a couple final minor comments
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Anything left to fix on this? Wanted to make sure you weren't waiting on me 😀 |
I was mostly waiting for someone else to actually approve after I addressed the last of the suggested changes, but I suppose since pokey said it was fine with the minor changes I can approve it myself. |
- Attempt to implement optional numb prefix - The tags need to be logically combined - Respond to suggestion that the mouse grid should not be considered --------- Co-authored-by: fidgetingbits <fidgetingbits@memeoid.cx> Co-authored-by: FidgetingBits <fidgetingbits@users.noreply.github.com> Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* 'main' of github.com:talonhub/community: (73 commits) add lowercased firefox-esr to firefox.py (talonhub#1410) configurable number prefix without mouse grid (talonhub#1342) Update app.exe matching to work with both public and beta Talon (talonhub#1385) Add comment line to javascript (talonhub#1387) Add detail to documentation (talonhub#1380) Switch to black pre-commit mirror (talonhub#1378) Update app_name_overrides.windows.csv to use Windows Terminal instead of iTerm2 (talonhub#1379) [pre-commit.ci] pre-commit autoupdate (talonhub#1376) coalesce some list updates (talonhub#1348) Remove unused setting from c code language (talonhub#1368) mouse: adding synonyms for starting left drag. (talonhub#1356) Adds commands to focus on the last application (talonhub#1336) Stop using “brackets” to mean “braces” (talonhub#1344) Update settings descriptions (talonhub#1371) Revert changes to `user.mouse_enable_pop_click` (talonhub#1370) Fix typo in `mouse.py` variable name (talonhub#1372) Convert boolean settings to boolean (talonhub#1360) Add ruby op-or-equals command (talonhub#1347) added app name Mate-terminal (fork of Gnome-terminal) (talonhub#1367) added app name Caja (fork of Nautilus) (talonhub#1366) ...
- Attempt to implement optional numb prefix - The tags need to be logically combined - Respond to suggestion that the mouse grid should not be considered --------- Co-authored-by: fidgetingbits <fidgetingbits@memeoid.cx> Co-authored-by: FidgetingBits <fidgetingbits@users.noreply.github.com> Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>