Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version control #116

Open
fabiospampinato opened this issue Dec 28, 2018 · 22 comments
Open

Version control #116

fabiospampinato opened this issue Dec 28, 2018 · 22 comments
Milestone

Comments

@fabiospampinato
Copy link
Member

@fabiospampinato fabiospampinato commented Dec 28, 2018

Native support for version-controlled notes would be awesome.

We should probably leverage git to enable this and other features.

@dawadam
Copy link

@dawadam dawadam commented Dec 29, 2018

Of course, automatic version control (git) !

@joschi
Copy link

@joschi joschi commented Dec 29, 2018

Maybe isomorphic-git would be a viable library to support this.
It's also used by Antora.

@fabiospampinato fabiospampinato changed the title Add version control Version control Dec 30, 2018
@danielkza
Copy link

@danielkza danielkza commented Jan 1, 2019

Hooks for calling custom scripts when relevant changes are made to notebooks would already help quite a bit with Git support (at least until a full-fledged solution can be developed).

@obillard
Copy link

@obillard obillard commented Jan 9, 2019

Hi,
This feature would be wonderful.

@atomi
Copy link

@atomi atomi commented Jan 15, 2019

Agree with @danielkza
All that I need is to commit and push changes immediately after doing an edit.

@amelandri
Copy link

@amelandri amelandri commented Jan 16, 2019

I would love it!

@spikespaz
Copy link

@spikespaz spikespaz commented Jan 20, 2019

Not creating a duplicate issue. After reading the tutorial, came to support this! I think integration with Git is all that would be required, no custom version control necessary.

Thanks for some awesome software!

@kinghat
Copy link

@kinghat kinghat commented Feb 1, 2019

this is a wonderful idea

@bendem bendem mentioned this issue Feb 4, 2019
@joaochenriques
Copy link

@joaochenriques joaochenriques commented Feb 12, 2019

Great enhancement.

@victorferreira
Copy link

@victorferreira victorferreira commented Feb 12, 2019

Today I came across this tweet and seems like a good example of what we could have with Notable version control: a timeline with all the history for a particular note.

Here's a link to the repo: https://github.com/pomber/git-history

@TheBuky
Copy link

@TheBuky TheBuky commented Apr 12, 2019

This will be very usefull feature!

@rmawatson
Copy link

@rmawatson rmawatson commented Jul 23, 2019

Git integration would be really great. Currently I have just init a git repo in the .noteable dir and I'm manually commiting and pushing every so often. But having either a git button per note to commit it (or commit & push) or a global commit push all changes to all notes would be nice

@vogler
Copy link

@vogler vogler commented Jul 24, 2019

Until something is integrated, the following works: https://github.com/gitwatch/gitwatch

@skyox
Copy link

@skyox skyox commented Sep 27, 2019

This will be very Usefull and Wanderfull feature!

@gnzlbg
Copy link

@gnzlbg gnzlbg commented Jan 14, 2020

It would be awesome if one could setup the App to use a particular github (or gitlab, or whatever) repo for backup, and this automatically synced notes across devices (e.g. one modifies a note in phone, the modification gets automatically committed to git, and the desktop app automatically pulls it).

@fabiospampinato
Copy link
Member Author

@fabiospampinato fabiospampinato commented Jan 14, 2020

@gnzlbg you pretty much can do that already, somebody posted a script somewhere (I don't remember where) that automatically commits changes, pushes them and fetches changes.

@joaochenriques
Copy link

@joaochenriques joaochenriques commented Jan 14, 2020

@fabiospampinato do you have any clue where can we start to search that script?

@fabiospampinato
Copy link
Member Author

@fabiospampinato fabiospampinato commented Jan 14, 2020

@joaochenriques I think it was posted on the subreddit: https://www.reddit.com/r/Notable

@amelandri
Copy link

@amelandri amelandri commented Jan 15, 2020

It was me. this is the script for Windows. I've scheduled it to run every 15 minutes

@echo off

for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
	set day=%%i
	set month=%%j
	set year=%%k
)

for /f "tokens=1-4 delims=: " %%i in ("%time%") do (
	set hour=%%i
	set minute=%%j
)

cd C:\Path\To\Your\Notebook

git pull && git add --all && git commit -m "Auto update %year%-%month%-%day% %hour%:%minute%" && git push origin master

@diogopublio
Copy link

@diogopublio diogopublio commented Apr 6, 2020

guys, is the plan here to have that built in in future version, or that is currently discarded ?

@fabiospampinato
Copy link
Member Author

@fabiospampinato fabiospampinato commented Apr 6, 2020

@diogopublio this issue is the "Future" milestone so I'd say it's planned, if it were discarded I would have closed this issue.

@cryoff
Copy link

@cryoff cryoff commented Aug 22, 2021

Are there any updates planned (as of now)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet