Klojer / obsidian-emacs-text-editor

GNU General Public License v3.0
21 stars 4 forks source link

set mark command doesn't work on MacOS #8

Open notuntoward opened 4 months ago

notuntoward commented 4 months ago

I've got ctrl + space mapped to set mark command and this works on Windows. Bu it doesn't work on MacOS -- doesn't set a mark. Is that expected?

Klojer commented 4 months ago

Thank you for report. Unfortunately, I have no macOS device to test.

Can you check if command Set mark command itself works? Please, try to call it via Command Palette.

notuntoward commented 4 months ago

The Set mark command by itself, from the command palette, doesn't do anything. There's no highlighting when I move the cursor away from the place where I marked, and if I try to copy or delete what should have been marked, nothing is copied or deleted. But the Set mark command does work on Windows.

I thought it might have something to do with Obsidian's Windows <--> MacOS Hotkey mapping weirdness, but it also doesn't work if I move the cursor away from the mark using the arrows keys, instead of emacs keys.

Klojer commented 4 months ago

It looks strange. The plugin uses the provided by Obsidian API for selection. I also can't find a description of similar defects in Obsidian.

@mlwelles, can you check on macOS selection of text, please?