Darren-project / obsidian-kv

Adds a key-value store to Obsidian. Use it to store and retrieve key-value pairs in your vault.
Apache License 2.0
3 stars 1 forks source link

[FR] Improve the text input in Settings #3

Closed tjg23 closed 2 months ago

tjg23 commented 5 months ago

At the moment, the text input in the plugin’s settings page is small, and the plugin’s parsing seems to remove newlines and indentation which makes it slightly more difficult/tedious to edit the data. A good example of the sort of improvements I think would be beneficial is the Latex Suite plugin by artisticat1. It uses data in a similar format, and it has an editor in the settings page that is larger, maintains formatting, and features syntax highlighting. This is not super important, since I primarily see myself editing the data through JS, but it would be a nice QOL improvement

mickeydarrenlau commented 4 months ago

Sorry that I just saw this Was busy building my infra

mickeydarrenlau commented 4 months ago

Can you point me to the settings design please

mickeydarrenlau commented 4 months ago

@tjg23

tjg23 commented 4 months ago

Sure, the code for Latex Suite's settings implementation is here. I've only spent a few minutes looking at it, and it seems fairly complex, but the first thing that stands out to me is that artisticat's design uses a codemirror EditorView instead of a simple text area

mickeydarrenlau commented 2 months ago

It is finally done image

mickeydarrenlau commented 2 months ago

@tjg23

tjg23 commented 2 months ago

Very cool!

mickeydarrenlau commented 2 months ago

Thanks