Code Monkey home page Code Monkey logo

Comments (9)

raboof avatar raboof commented on June 28, 2024 1

Agreed, for the default keybinding scheme this feature will not be used.

But my (not so) secret plan is to come up with an alternative set of keybindings, where the first 4 tabs can be switched between directly without first going through META+K

from notion.

raboof avatar raboof commented on June 28, 2024

I think it would be even better to show the numbers immediately when pressing the META key, if that's possible. That improves the experience when you have mapped e.g. META+1 or META+q (or META+a...) to switch to the first tab.

I think we can hard-code showing numbers, and don't have to look at what keys are actually configured to switch tabs - though that would be nice

from notion.

raboof avatar raboof commented on June 28, 2024

Unfortunately you can't bind to an 'abstract' modifier (like Mod4), you have to bind to concrete keys (like Super_L).

Proposed approach: read the xmodmap on startup and do the conversion when binding to 'abstract' modifiers to 'concrete' keys at the Notion side. Means people will have to restart Notion when they change modifier mappings, which seems reasonable.

from notion.

wilhelmy avatar wilhelmy commented on June 28, 2024

My gut feeling says this is a bit of a hackish workaround.

There are other ways than Xmodmap to set modifier keys, e.g. I switched from using xmodmap to using setxkbmap for everything a few years ago:

setxkbmap us \
          -option caps:super \
          -option compose:102 \
          -option lv3:ralt_switch \
          -option terminate:ctrl_alt_bksp \
          -variant altgr-intl

I don't think anything but the xmodmap(1) utility should be responsible of reading/parsing ~/.Xmodmap if that's what you're suggesting.

from notion.

raboof avatar raboof commented on June 28, 2024

My gut feeling says this is a bit of a hackish workaround.

Open to suggestions ;)

I don't think anything but the xmodmap(1) utility should be responsible of reading/parsing ~/.Xmodmap if that's what you're suggesting.

I was not thinking of parsing ~/.Xmodmap, but using some API - not sure yet what api would be suitable for this though ;)

from notion.

raboof avatar raboof commented on June 28, 2024

The original issue (showing tab numbers you press 'META+K') has since been fixed, but there is some good discussion around the additional feature that came up in this issue (showing tab numbers when you press META) here, so let's keep this issue around to track the latter.

from notion.

knixeur avatar knixeur commented on June 28, 2024

I guess we should make this optional if implemented. The only context when I want to see tabhints is when I want to switch to one pressing META+K 😄

from notion.

wilhelmy avatar wilhelmy commented on June 28, 2024

I have META+[ and META+] for prev/next tab, and I use those pretty much exclusively ever since the tabhints disappeared.

from notion.

raboof avatar raboof commented on June 28, 2024

the tabhints should be back on the lgpl branch (though in slightly more primitive form) - nonetheless I agree having a quicker way to reach this functionality is useful ;).

from notion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.