Function key shortcut tweaks?
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 516
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
Pressing F1 searches the docs for the identifier under the cursor. If that identifier is bound to a module import, I can right click it and jump directly where it's defined in the docs instead of searching. I can also right click it and open the file that defined it. What do you think of the following usability tweaks:
- Make F1 go straight to the definition instead of searching when the identifier under the cursor is a module import. This is usually what I want anyway. "F1 means help" is a shortcut lots of people are already familiar with and sometimes expect to "just work", so making it as smooth as possible seems like an easy usability win.
- Make F2 open the defining file of an import, so that the F1 and F2 keys sort of match up with the "view docs" and "view source" right click options. That sort of parallel is easy for me to remember once I've learned it.
...But in the process of writing this issue, I've (re)learned that F2 currently toggles the signature box. Maybe F3 would work for "view source" instead? Or maybe the signature box toggle should be something else, because "f1+f3 means open docs+source" isn't so easy for me to remember.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing F1 search behavior, F2 signature-box toggle, and right-click documentation/source actions described in the issue. First resolve the proposed key mapping, then verify that the chosen shortcuts behave consistently for imported identifiers and preserve an intentional way to toggle the signature box.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100