recent-files-obsidian icon indicating copy to clipboard operation
recent-files-obsidian copied to clipboard

Sync recent files list

Open feedhopper opened this issue 2 years ago • 11 comments

I would actually love to see an option to sync recent files between mobile and desktop. It would allow me to continue my work seamlessly when I need to switch devices...

In case of more than one profile exists( I have two: desktop for PC and Android Tablet and mobile for my smartphone), there could be tabs presenting the recent file lists for each profile. Only when I pick a note from another sync list, it would incorporate into the devices recent files overview.

This way, users who do NOT wish to be auto-synchronized, would not get in trouble.

feedhopper avatar Nov 11 '22 10:11 feedhopper

YES, I also sometimes want to continue notes on my phone. Or the other way round. and just getting back to the most recent file would be so convenient

thibaultmol avatar Apr 28 '23 19:04 thibaultmol

I regularly move back and forth from desktop to mobile and would love to see this!

bradsayers avatar Oct 09 '23 13:10 bradsayers

I am using Obsidian Sync, and it does sync daja.json on both my phone and desktop PC. However, I need to restart Obsidian to make recent-files-obsidian actually update the list in the pane on the left. The plugin doesn't listen for data.json changes coming from outside (whether it is Obsidian Sync or any cloud provider you may be using), as mentioned in this comment https://github.com/tgrosinger/recent-files-obsidian/issues/33#issuecomment-996897009

nicolnt avatar Feb 15 '24 10:02 nicolnt

The Chronology plugin shows all updated files for all synchronized platforms. Therefore, it would be a good reference for this plugin. github.com/Canna71/obsidian-chronology

kazdonkai avatar Feb 15 '24 10:02 kazdonkai

Nice plugin! Thanks for the discovery. I was using this plugin personally obsidian-contribution-graph

nicolnt avatar Feb 15 '24 11:02 nicolnt

The problem with the Chronology plugin is that it does not allow for context menus or drag and drop. Moreover, it has not been updated recently, so I don't have much hope for it. So, I am looking forward to the Recent files plugin's expanded functionality.

kazdonkai avatar Feb 15 '24 11:02 kazdonkai

Thanks to Obsidian's recent API addition (https://github.com/obsidianmd/obsidian-api/blob/master/CHANGELOG.md#v157), It seems that simply adding the following code to the RecentFilesPlugin class is generally sufficient to achieve synchronization of history between devices.

async onExternalSettingsChange() {
	await this.loadData();
	this.view.redraw();
}

iiz00 avatar Mar 04 '24 00:03 iiz00

I tried iiz00's option but it only seems to work when I restart the apps on both devices. It would be nice to have real time syncing...

bradsayers avatar Apr 07 '24 14:04 bradsayers

Hmm, that's unfortunate. While it seems to be synchronizing in real-time fairly well in my environment, it's still just an overwrite of the history, not an integration. And I'm not sure if it's working properly in other people's environments...

iiz00 avatar Apr 08 '24 09:04 iiz00

FWIW, I just tried iiz00's suggestion, and it's working between Mac and iOS (using Obsidian Sync).

seren avatar May 19 '24 08:05 seren

FWIW, I just tried iiz00's suggestion, and it's working between Mac and iOS (using Obsidian Sync).

Can also confirm it works between Mac and iOS, without restarting the app.

@tgrosinger will you merge https://github.com/tgrosinger/recent-files-obsidian/pull/70 ?

notDavid avatar Jul 13 '24 13:07 notDavid