BBazard / obsidian-orgmode-cm6

Orgmode plugin for Obsidian
MIT License
12 stars 0 forks source link

Doesn't support iOS. #3

Closed zzeitt closed 1 week ago

zzeitt commented 2 weeks ago

Can't install on my iPhone 12 mini. image

BBazard commented 2 weeks ago

The plugin cannot be installed on android/ios because of this line in the manifest.json : "isDesktopOnly": true

I don't use obsidian on mobile so it's not implemented.

zzeitt commented 2 weeks ago

Change "isdesktoponly" to "false" does make it installable on iOS. But it doesn't take any effect on .org files.

Did I miss something or it just doesn't work on mobile devices?

BBazard commented 2 weeks ago

I took a look with android (following https://docs.obsidian.md/Plugins/Getting+started/Mobile+development), one problem is that global doesn't exist on mobile

https://github.com/BBazard/obsidian-orgmode-cm6/blob/58c93807e25f8a74b2f157434c3370bd2bc3af02/main.ts#L85-L86 This is the way the plugin allows you to change the settings without reloading the codemirror extension, and allows other plugins to have access to those settings.

So yes, currently it just doesn't work on mobile devices.

I think we could make it work by using codemirror compartments but I am not sure when I will have the time to make the change, and maybe there is other issues on mobile.

zzeitt commented 2 weeks ago

Well, thanks for your reply! I am not familiar with obsidian plugin developing, so little help can I offer. But I will keep tracking this issue.

BBazard commented 1 week ago

I released 2.0.0 with mobile support.

I tested it on android, can you tell me if it works on your side with iOS?

zzeitt commented 1 week ago

It works! Thanks! imageimage Nice to see that orgmode invade Obsidian successfully 😈.

zzeitt commented 1 week ago

By the way, there is only source/edit mode in orgmode view. Can we support something like "markdown preview" in orgmode view?

BBazard commented 1 week ago

Possible to implement with decorations, but everything has to be done from scratch since obsidian is not open source.

zzeitt commented 1 week ago

Okay, will give more try in editing mode. Thank you!