8000 Feature: sync option through git · Issue #64 · oysandvik94/curl.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature: sync option through git #64
Open
@kareem-abdul

Description

@kareem-abdul

The title says it all, but essentially a way to sync collections between multiple devices through a git server.

A possible work flow could look like how pass does it

  1. initialize a git repo
:CurlCollection global git init

this could setup a git repo in the .local/share/nvim/curl_cache/custom directory for global collections

  1. set up a remote
:CurlCollection global git remote add origin git@gitserver.com:user/curlcollections.git
  1. pushing to remote
:CurlCollection global git push

etc.

Or maybe as a single command like so

:CurlCollection push git@gitserver.com:user/curlcollections.git // to push to remote
:CurlCollection pull git@gitserver.com:user/curlcollections.git // to pull changes

Additional notes

  • could utilize fugitive to interface with git.

Some Caveats

  • I'm not sure how you can handle scoped collections since scope is specific to a device
  • every change in a file need to be added as a commit or could be created as a one commit before the sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0