chetachiezikeuzor / Highlightr-Plugin

A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Mozilla Public License 2.0
608 stars 34 forks source link

mouseless use of highlightr #18

Open MagnusOffermanns opened 2 years ago

MagnusOffermanns commented 2 years ago

Hy Chetachi,

I love your Obsidian plugin and it has already found a fixed place in my workflow. I have one point of improvement though.

I am working very often only with my keyboard and would enjoy a fully mouseless workflow. I.e. I choose the text using shift and the arrow keys. Press the menu key (the one which is most often between alt-gr and ctrl) to open the context menu. There the first element is selected. I choose the highlightr element and press enter. Then the color menu opens.

The problem here is that no element is selected meaning I have to use the mouse to choose the color.

It would be awesome if the focus is on the the color menu and a color would be selected so that one can go on using the keyboard selecting the color.

I am using awesome vm meaning that this could be a awsome vm problem,

So here in pictures:

  1. I choose the text I want to highlight: image

  2. I press the menu-key to open the context menu. The element highlight is selected and I choose it. image

  3. The color chooser context menu has opened but nothing is selected. I have to use the mouse to choose the color. image

Anyway, thank you for this great plugin and hope it becomes one of the most downloaded very soon.

lzyerste commented 2 years ago

hi @MagnusOffermanns

I have a workaround for your problem. Here's the workflow.

The first step is to select text as usual. Then you can open command palette (the default shortcut is ctrl+p) In the popup, type in highlight to search related commands, and now you can choose highlight color.

image

In addition, if you prefer some color (such as red) as default, you can assign a new shortcut. Settings -> Hotkeys, search highlight.

For example, in my case, I assigned ctrl+shift+h to hightlight red:

image