Giter Site home page Giter Site logo

frixaco / codesync Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 5.38 MB

Codesync (WIP) - VS Code extension to synchronize uncommitted code changes across devices

License: MIT License

TypeScript 93.11% HTML 1.41% JavaScript 4.04% Shell 1.44%
vscode codesync express javascript prisma solid typescript

codesync's Introduction

Codesync (WIP)

Synchronize your changes across devices. No need to commit, stash, copy-paste your changes when switching between devices (laptop, PC, tablet, etc.).

Currently, I work both on my laptop and PC and regularly switch between them (switch to laptop at University, then switch back to PC at home, switch to PC when I want to do some heavy testing/development). I couldn't find any quick and easy way to switch between devices without losing any progress (transferring edited/created/deleted files to other device) and it's pretty annoying to: stash the changes using a git command => save to file as a patch => send to other device using some service (notion) => download, move to project folder => apply the patch by running a git command.

So I deciced to make this extension which will, hopefully, solve this problem of mine.

TODO

Demo

codesync-demo-1.mp4

Local developement

  • Create .env file in api/ folder. Example: .env.example
  • pnpm install (or run ./clean-install.sh for clean install)
  • pnpm dev to run everything in dev mode
  • Press F5 to start working with the extension

Features

  • Github OAuth for authorization/authentication
  • Synchronize staged, unstaged, tracked and untracked file changes
  • Manage multiple projects
  • Manual two-way synchronization
  • Auto synchronization

Requirements

  • Following should be same (otherwise, git apply will fail since indexes will be different) (Working on removing this requirement, see #8):
    • git repo
    • git branch
    • git commit
  • VS Code: 1.69.0 or above (TODO: Lower the version)

Extension Settings

Known Issues

Release Notes

0.0.0

codesync's People

Contributors

azizkhan030 avatar frixaco avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

azizkhan030

codesync's Issues

Implement `server` code

  • Projects and changes (diffs)
    • Add DB schemas
    • CRUD routes for projects
    • Send/Receive diffs (changes)
  • Synchronization for each project (websockets)
    • Manual send/receive changes
    • Auto receive changes
  • User auth
    • Github/Google auth vs email/password?

Using `patch` command to apply patches when Git indexes don't match

I just discovered that I can run patch -p1 <patch.file> to apply diffs and seems like it's less strict than git apply. Also there's diff command which generates diffs just like git diff. I suggest (to myself) to investigate both commands (diff and patch) and see how they compare to Git's diff and apply. If it's just diff to create the project and then just patch to apply it without any additional steps like with Git, I'll switch to them.

Implement `UI` and extension logic

  • Basic UI elements (buttons, actions, etc.)
  • Manual two-way synchronization (buttons, requests)
  • Improve loading state (authing, fetching, etc.)
  • Manage Projects (requests)
  • User login/registration (Github/Google/etc. vs email/password)
  • Auto send changes (websockets)
  • Integrate @vscode/webview-ui-toolkit

Logo ideas

Keywords: "code", "synchronization", "arrows", "pc", "laptop", "cloud", "remote", "network"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.