Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanding editable extensions #2

Open
thw26 opened this issue Jul 7, 2021 · 1 comment
Open

Expanding editable extensions #2

thw26 opened this issue Jul 7, 2021 · 1 comment

Comments

@thw26
Copy link

@thw26 thw26 commented Jul 7, 2021

I was considering using Obsidian to edit some .fodt files to make use of Git versioning, but Obsidian doesn't recognize .fodt as flat text files, nor does it recognize .xml files.

Would it be as trivial as modifying https://github.com/deathau/txt-as-md-obsidian/blob/main/src/main.ts to add more?

@deathau
Copy link
Owner

@deathau deathau commented Jul 7, 2021

It would be that easy for sure.
The way this plugin specifically is written, though, it will interpret them as markdown files, which may not be exactly what you want.

My suggestion would be to instead fork this one: https://github.com/deathau/ini-obsidian and modify it for whichever file types you want to support. For example, for XML you can basically replace ini with xml (and add fodt, etc to registerExtensions) and instead of using the "properties" mode in codemirror, grab the xml mode from CodeMirror (or my editor syntax highlight plugin here: https://github.com/deathau/cm-editor-syntax-highlight-obsidian/tree/main/mode/xml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants