Trangar / zettelkasten

Rust implementation of https://en.wikipedia.org/wiki/Zettelkasten
MIT License
2 stars 1 forks source link

Mouse movement escape codes are fed into the editor #30

Closed jamesmunns closed 1 year ago

jamesmunns commented 1 year ago

output

Hey there! When using zettelkasten with nano + alacritty, I get escape codes inserted into the text editor window. This does not normally occur when I use nano directly. I've attached a gif of what this looks like.

Thanks for sharing, the menu system is SUPER slick! I love the feedback when changing the editor (showing whether the bin exists).

VictorKoenders commented 1 year ago

I wonder if it should disable the TUI modes that are enabled here and disabled when the application closes here

jamesmunns commented 1 year ago

I can give it a try! Let me pull down the repo and build.

jamesmunns commented 1 year ago

I can confirm that removing just the EnableMouseCapture/DisableMouseCapture lines seem to prevent the issue for me, removing the other modes caused problems :p.

Want me to open a PR for this? Or would you want to make it a runtime config or compile time feature?

VictorKoenders commented 1 year ago

A PR would be great, thanks! I'm assuming other editors also don't expect the parent program to capture the mouse inputs