Post #2701921
2025-02-06 00:04 UTC
@blinry@chaos.social As a kneejerk reaction, I think `vim https://notes.ietf.org/mypd` (or `:e https:…`) should decide whether anything smarter than "GET the document and try to PUT it on writing" (which generally is a good default) is provided by plugins, probably by attempting some of the discovery options. If opening the root path behaves like a directory, even nicer.
On saving, this might go into a cache (maybe ~/.cache/ethersync/by-url/notes.ietf.org/mypd), most config I'd like is changing that per host.
Replies (2)
-
@chrysn@chaos.social 2025-02-06 00:09
@blinry@chaos.social The higher level expression of this might be that vim can edit remote things just fine. Correlating and syncing local files with remote things is for another (sync) tool, whose configs might be understood by a vim plugin. Just like I get changed-line marks when vim sees something managed in git, it could autoconnect if it finds that next to a file there is a `.ethersync` file (from a hypothetical tool that keeps those files pulled up to date for offline reading even when no editor runs).
-
@blinry@chaos.social 2025-02-06 00:18
@chrysn@chaos.social Right!! Opening the URLs directly seems like a great idea, thanks!