Fixed a vim inspired bug, removed -q from the git push statements so that users can see what's going on.

This commit is contained in:
stormdragon2976
2023-04-03 20:00:19 -04:00
parent 8df327ee53
commit 37066b6a9b

View File

@@ -111,7 +111,7 @@ add_note() {
if [[ -d "$xdgPath/notestorm/notes/.git" ]]; then
{ git -C "$xdgPath/notestorm/notes" add -A
git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note added.")"
git -C "$xdgPath/notestorm/notes" push -q ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
fi
else
infobox "Note canceled."
@@ -141,7 +141,7 @@ delete_note() {
if [[ -d "$xdgPath/notestorm/notes/.git" ]]; then
{ git -C "$xdgPath/notestorm/notes" rm -f "$1"
git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note deleted.")"
git -C "$xdgPath/notestorm/notes" push -q ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
fi
else
infobox "$(gettext "Action canceled.")"
@@ -175,7 +175,7 @@ edit_note() {
if [[ -d "$xdgPath/notestorm/notes/.git" ]]; then
{ git -C "$xdgPath/notestorm/notes" add -A
git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note updated.")"
git -C "$xdgPath/notestorm/notes" push -q ii; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
fi
else
infobox "$(gettext "Changes discarded.")"
@@ -201,7 +201,7 @@ encrypt_note() {
{ git -C "$xdgPath/notestorm/notes" add -A
git rm -f "$1"
git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note encrypted.")"
git -C "$xdgPath/notestorm/notes" push -q ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1
fi
return
fi