obsidian-remember-cursor-position icon indicating copy to clipboard operation
obsidian-remember-cursor-position copied to clipboard

Not working on Android

Open ghost opened this issue 2 years ago • 4 comments

File is correctly updated with cursor position however it does not scroll to position after closing the file or exiting obsidian. Tested in source view and live view.

Obsidian 1.4.9 Android 13, pixel 6a

ghost avatar Sep 23 '23 16:09 ghost

I found a way to make this plugin work on Android.

  1. Enable core plugin "workspaces"
  2. Enable this plugin
  3. Open file
  4. Save workspace for the file you want to have cursor location saved.

From thereon if you make sure to closer that file/workspace without changing the workspace, like opening another tab, the workspace will be saved to open where you left off.

By themselves neither plugin will save and open the file to the proper location, just opens the file to the top.

Maybe there's something in this that'll help figure out why the plugin needs a workspace saved or maybe a workaround so that it's not needed in the future 🤷‍♂️

ghost avatar Sep 24 '23 18:09 ghost

Thanks for the useful information

dy-sh avatar Oct 02 '23 17:10 dy-sh

Found more useful info for Android users.

The plugin will remember cursor position without saving a workspace however once you close the file you MUST open it via "see recent files" or search. If you open the file via the file manager it'll open at the beginning of the document.

It seemed odd that the json file was properly being updated but then wasn't triggering the file to the property location. So, for Android, there seems to be a bug, or feature 😄, that resets the cursor position, or ignores the plugin, when the file is opened via file manager 🤷‍♂️

ghost avatar Oct 04 '23 18:10 ghost

Same issue experienced on Android: Samsung Tab S8+, Android 13 Obsidian 1.4.16(114)

The cursor position always comes back to line 0.

guyyakobovitch avatar Oct 31 '23 23:10 guyyakobovitch