sleek icon indicating copy to clipboard operation
sleek copied to clipboard

Provide some minimal `git` integration

Open callegar opened this issue 1 year ago • 6 comments

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.

callegar avatar May 04 '23 12:05 callegar

+1

mimmori avatar May 05 '23 09:05 mimmori

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.

warmwaffles avatar May 05 '23 13:05 warmwaffles

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.

github-actions[bot] avatar Oct 19 '23 00:10 github-actions[bot]

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

callegar avatar Oct 19 '23 09:10 callegar

Your comment should be enough to keep it open.

ransome1 avatar Oct 19 '23 09:10 ransome1

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.)

andrei-a-papou avatar Dec 15 '23 09:12 andrei-a-papou

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.

github-actions[bot] avatar Mar 15 '24 00:03 github-actions[bot]