top | item 32964356

(no title)

araekiel | 3 years ago

Sounds great :) Eventually, Jot will have git integration for cross device sync, maybe then, it could serve as a nice addition to your workflow.

discuss

order

samsquire|3 years ago

That's awesome. I sometimes edit my notes in IntelliJ or in GitHub web interface.

At one point I created an autocommit script that commits every second which you can change the commit message by setting it in a file called "current-task"

Could combine this with automatic synchronization with pulling too.

  #!/bin/bash

  while true; do

     sleep 1

     (cd app ; git status -z;
     git add . && git commit -m "autocommit $(cat ../current-task)" ; git push -f app);

  done > autocommit.log 2>&1

araekiel|3 years ago

Cool! Just took a screenshot, might need this later. Thanks!

Will add a reference to this comment, if I end up using it. :)

gunapologist99|3 years ago

Consider using inotifywait to commit only on changes, rather than just committing every minute.

dopidopHN|3 years ago

Oh it’s does not? What happen if the vault happen to be a git repo? I assumed that would allow to synchronize.

( nothing automatic, no concurrency management of course )

araekiel|3 years ago

Yes, that would work, requiring a bit more manual work. Git integration within the tool would make that easier & a tad quicker.