M30s, Milwaukee County, WI. If you’re in town, let’s grab a meal at Naf Naf Grill!

  • 3 Posts
  • 61 Comments
Joined 23 days ago
cake
Cake day: February 18th, 2025

help-circle






  • macOS blocks tools like Espanso from viewing or modifying login input fields.

    I wonder if SikuliX may be of interest to you, then. I just invoke KeePassXC’s built-in autotyper; it’s not too much more painful for me. Anyway, thanks for sharing! We certainly use it for very different things. Here’s a Reddit search URL generation script that I use sporadically:

      - trigger: '`rs'
        replace: '{{output}}'
        vars:
          - name: form
            type: form
            params:
              layout: |
                [[subdomain]]
                Subreddit (optional): [[subreddit]]
                Query:
                [[query]]
              fields:
                subdomain:
                  type: choice
                  values:
                    - www
                    - old
                  default: old
          - name: output
            type: script
            params:
              args:
                - python
                - -c
                - |
                  if '{{form.subreddit}}':
                    print(f'https://{{form.subdomain}}.reddit.com/r/{{form.subreddit}}/search?q={{form.query}}&restrict_sr=on&include_over_18=on')
                  else:
                    print(f'https://{{form.subdomain}}.reddit.com/search?q={{form.query}}&include_over_18=on')
    

    I wanna make a Lemmy equivalent of this, eventually…

    Update: Okay, just did for my instance!

      - trigger: "`lemmy"
        propagate_case: true
        replace: "https://programming.dev/search?q=%7B%7Blemmy.query%7D%7D&type=%7B%7Blemmy.search%7D%7D&listingType=All&page=1&sort=%7B%7Blemmy.timeframe%7D%7D"
        vars:
          - name: "lemmy"
            type: form
            params:
              layout: |
                Query: [[query]]
                Filter: [[search]]Time Frame: [[timeframe]]
              fields:
                query:
                search:
                  type: list
                  values:
                    - All
                    - Comments
                    - Communities
                    - Posts
                    - Users
                    - URL
                  default: All
                timeframe:
                  type: list
                  values:
                    - TopWeek
                    - TopMonth
                    - TopThreeMonths
                    - TopSixMonths
                    - TopNineMonths
                    - TopYear
                    - TopAll
                  default: TopAll
    

    It’d be nice to be able to improve the layout’s appearance, but I don’t know how to do that…






  • Flagstaff@programming.devtoFirefox@lemmy.mlHow to EASILY disable on-tab-buttons ?
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    5
    ·
    edit-2
    3 days ago

    You shouldn’t be navigating by mouse in the first place, though. Either of these methods works:

    • Use Ctrl+Tab/Ctrl+Shift+Tab/Ctrl+PgUp or PgDn
    • Type "% " in the omnibar (note the space) and start typing any part of the name of the tab you want to jump to (like the name of the video), then hit Tab and then Enter

    You can use AutoHotkey or some other tool on your OS of choice to map these to more ergonomic alternatives if that may be easier (for example, I mapped Ctrl+Q to "Ctrl+L, % " to invoke the second way automatically). I can help with AutoHotkey code if you’d like, in !ahk@programming.dev.

    If you have that many tabs that it’s difficult to avoid the buttons, then you may like this second method anyway, since that tab-jumping method makes it totally needless to visually track which tabs are where in the tab strip. You could have a hundred tabs and not know where they are; just use "% " and part of the tab’s name to jump to it.

    TL;DR: I couldn’t figured out how to hide those interactive buttons either, haha.