gbafana25 / tuxsav

Sync from terminal directly to server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tuxsav

Tuxsav allows files being edited in Vim to be automatically saved remotely.

Server

The server component is written in Django, and exposes an API that the client program communicates with.

Client

The client is written in C++, and sends data to the server every four seconds

Document sync connection flow

  • client reads vim .swp file
  • posts to /update endpoint every four seconds
  • server verifies key validity and updates document
  • server sends success/failure response

Note on reading from Vim swp files

  • offset for start of data found in this script.
  • look for Vim documentation that gives a better explanation of the file data starting point
  • keep experimenting with offset index
  • in future: could potentially store some of the metadata on the server

Watch Development Progress

TODO:

About

Sync from terminal directly to server

License:GNU General Public License v3.0


Languages

Language:C++ 96.2%Language:Python 2.0%Language:HTML 1.0%Language:CSS 0.8%Language:Makefile 0.0%