Allow shortcut keys for text formatting and action in description fields like CMD+B, CMD+K, CMD+I, etc.
Description
Related Objects
Event Timeline
Hi, this is a production instance. Please file only legitimate tasks.
We have https://phab-01.wmflabs.org/ for experimenting and learning.
Sorry, for some reason reading "test" as sole description made me think this was a test. :)
I didn't type test… I see it there, but I didn't add it. Is there default description that is being added?
Phabricator saves the text you are typing with some persistence (which is very useful if your connection drops, your browser crashes, etc). My bet is that you had typed "test" at some point while creating a task, and then you created this task here without any description (tsk tsk) :) , and you didn't notice that your "test" was still there.
2 Closed Phab bugs:
- Suggestion of going towards Github's standard of shortcuts, for Differential at least. (j/k for prev/next), done in https://secure.phabricator.com/T184
- Feature request for ctrl-Enter to submit a comment, https://secure.phabricator.com/T704
But nothing about bold/italic/link/code/etc.
Here are Mediawiki's shortcut standards:
- Mediawiki (navigational): https://en.wikipedia.org/wiki/Wikipedia:Keyboard_shortcuts#Modifier_keys
- VE (text formatting): https://www.mediawiki.org/wiki/VisualEditor/Portal/Keyboard_shortcuts
Here are Github's and Gerrit's:
"Shortcut keys for description fields" is too vague. I think we will have a better chance if specific shortcuts are requested, like in https://secure.phabricator.com/T704
I'd love some navigational shortcuts. Go to notifications is an obvious one (ctrl + n).
You're probably the most active phab user here, so maybe you could add a list of use-cases? (If you're generally a user of keyboard shortcuts, of course!) - I do my triage via email, so cannot really help.
Task specific shortcuts:
- Edit task
- Subscribe / unsubscribe
- Assign to self
- Remove assignment
- Close task
Navigation shortcuts:
- Go to notifications
- Go to RSI help page
This looks like a couple of different requests:
- Add text formatting shortcuts like ⌘+B (or whatever) to make selected text bold when editing text in a Remarkup text area.
- Add navigation shortcuts for a lot of other stuff.
I don't currently plan to add either feature to the upstream.
In both cases, we've seen relatively little interest in these features and they're somewhat complex to implement, test, and maintain. One issue in all cases here is conflicts with existing browser and OS shortcuts: for example, ⌘+B, ⌘+K, ⌃+K, ⌘+U and ⌘+I all do something in at least one of Safari, Firefox, or Chrome on macOS.
For global navigation (like "View Notifications"), you can probably bookmark the URL and use browser shortcut features, or use OS-level shortcut features with open <url>.
For quicker access to on-page actions, you might be able to use accessibility features of your OS. For example, with VoiceOver you can ⌃+⌥+I to pull up a list of all links on a page, then type "sub" to select the "subscribe" link. This may or may not be a great fit, but is a general-purpose solution to providing keyboard access to the page if you need accessibility affordances because of poor vision, limited dexterity, RSI injury, etc.
You can also use "Bulk Edit" to bulk-edit multiple tasks in a single action, or the API to automate a larger number of more complex edits.
Another possibility would be something like https://addons.mozilla.org/en-US/firefox/addon/shortkeys/
Declining as per T816#5224212 and as several other ways to achieve similar functionality were provided.