Open kousu opened 1 year ago
The shortcut for toggling comments is displayed in the document context menu. This is the main way Elementary shows app action shortcuts at the moment (or in button tooltips). I think there is an general issue for showing collated app shortcuts (e,g, in a Gtk.ShorcutsWindow).
This is related: https://github.com/elementary/shortcut-overlay/issues/115
Hi! Happy new year; thanks for answering (and no pressure to get back to me any time soon)
The shortcut for toggling comments is displayed in the document context menu.
Is that supposed to be this context menu? It's not there for me:
I'm using 6.2.0 from this package
This is how it looks on elementary Horus (pre-release):
I could not see any commits since release of version 6.2.0 that would affect this though. Maybe due to newer version of Granite or Gtk3?
Here's all the packages I have underneath:
Maybe it's important to say I'm not running pantheon-session
; I'm running i3
, and I'm pretty sure I've seen this behaviour under plasma-desktop
as well. Can the desktop environment have such a large effect on how context menus render?
EDIT: I installed pantheon-session
and booted into it by setting this in my ~/.xinitrc:
exec gnome-session --builtin --session=pantheon
and running startx
. But when I started Code up the context menus were still missing shortcuts.
Very odd! I'll take this up with the Arch packagers too. Maybe they have an idea.
Hmm, I checked that the accelerator labels show correctly on current release of elementary (6.1) as well and your Granite and Gtk library versions match so its strange. Maybe a stylesheet issue? elementary 6.1 has io.elementary.stylesheet
version 7.0.0. It seems unlikely the window manager would have such a specific effect.
i believe this is an stylesheet issue, elementary has an custom keycap
css class that is used on accel labels.
I guess that would explain it, although I would have thought it should fallback to something visible and legible.
Problem
I like how minimal code is! It's like Atom or VSCode, but fully libre, which is super encouraging.
But it might a be bit too minimal. I had to go digging in the issues to find out that Ctrl-M toggles block comments (and plus, that thread is out of date: it says it was a plugin, but I don't see a plugin in the plugins picker, so I assume this feature got pulled into the core at some point?). I don't see anywhere in the UI that I could have learned this keyboard shortcut, and there's no menu that could have done it either. What other features am I missing? Without them, I keep hitting walls when trying to use Code for daily use. Looking through https://elementary.io/support for a summary just directed me to the github forum.
Proposal
Add a link to the main menu, below "Toggle Sidebar" and "Preferences", that shows a window with all the information currently in https://github.com/elementary/code/wiki/shortcuts. Or at least that opens a browser to that link.
Prior Art (Optional)
No response