ransome1 / sleek

todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)
https://github.com/ransome1/sleek/wiki
MIT License
1.33k stars 104 forks source link

Provide some minimal `git` integration #489

Closed callegar closed 4 months ago

callegar commented 1 year ago

Did you check if a similar feature request has already been reported?

Checked, not reported

Is your feature request related to a problem? Please describe.

Keeping old versions of the tasks (in case some task is accidentally deleted), easing synchronization of tasks among multiple computers.

Describe the solution you'd like

todo.txt files are line based text files. This is the ideal format for taking diffs and for storing in a revision control system, such as git. Would be great to have some form of git integration modeled after what is offered in the pass password manager (https://www.passwordstore.org/) and its QtPass frontend (https://github.com/IJHack/QtPass).

This would work as follows:

  1. When sleek realizes that a configured todo file is in a directory under git control (i.e., with a .git subdir) and that git is available, activate git integration
  2. When git integration is active if a todo file in a directory under revision control is modified, perform a commit in that dir. Alternatively, provide a commit button for the user to manually commit the file being worked upon to git
  3. Provide a pull and a push button, resulting in git pull and git push.
mimmori commented 1 year ago

+1

warmwaffles commented 1 year ago

Currently the work around I have been doing is manual. I just go to the directory, git add . and then commit the changes. This would reduce my need to remember to do that.

github-actions[bot] commented 10 months ago

This is an automated response. We acknowledge your report, and we appreciate your engagement. However, as there has been no recent activity in this thread, it has been marked as stale. If you have any further feedback or if the matter is still relevant, please do not hesitate to respond. Otherwise, this thread will be automatically closed in 15 days from now.

callegar commented 10 months ago

Unclear to me whether this will automatically be closed also in the sleek 2.x backlog. Please, keep it open there.

ransome1 commented 10 months ago

Your comment should be enough to keep it open.

andrei-a-papou commented 8 months ago

At least for Unix-like systems, an easy solution is to use https://github.com/gitwatch/gitwatch. Haven't tested, but it should also work with Cygwin/WSL/Git Bash/etc.

This script https://bitbucket.org/brendanp/git-prime/src/master/ is reported to work under Cygwin.

And if one uses Syncthing, it can be quickly configured to keep a bunch of backups (might be enough in many cases -- and this is what I'm using right now.)

github-actions[bot] commented 5 months ago

This is an automated response. We acknowledge your report, and we appreciate your engagement. However, as there has been no recent activity in this thread, it has been marked as stale. If you have any further feedback or if the matter is still relevant, please do not hesitate to respond. Otherwise, this thread will be automatically closed in 15 days from now.