Linus-Mussmaecher / rucola

Terminal-based markdown note manager.
GNU General Public License v3.0
203 stars 3 forks source link

Wrong command for exemplary custom editor #12

Closed lukeflo closed 1 week ago

lukeflo commented 1 week ago

Describe the bug When uncommenting the example line of the default config file, opening a file will lead to a crash

To Reproduce Uncomment the named line and try to open a file with e.

Expected behavior Should open Helix.

Desktop (please complete the following information):

Additional context You simply added the wrong command name. To open Helix you have to use the command hx not helix. Thus, changing the line to # editor=["hx", "%p"] makes it work!

Issue #11 might be related!

Linus-Mussmaecher commented 1 week ago

Hi,

this seems to be not necessarily correct. On my system , helix installed with the executable name helix and I needed to add hx as an alias manually. I am not sure what this depends on, but I could add a note to the wiki example if that helps.

lukeflo commented 1 week ago

Ah OK. You might be running Mac? On Linux its definitely hx; at least on all distros I've tried so far...

Linus-Mussmaecher commented 1 week ago

No, I'm running Arch Linux and installed it from the AUR with yay which wraps pacman. I was confused myself why this happened, as most online sources talk about hx (which is why I immediately added that as an alias).

lukeflo commented 1 week ago

Weird. But an extra hint as you mentioned should be enough 😉