Hi,
Do you know how to do whith kate or gedit, to quickly watch what has changed in edition mode?,
I mean, some kind of quickly mode like "ultracompare"(parallel tab or highlighted text) with the recently opened document, so I can see what I has changed before to decide if save it or not. I need this, cos sometimes I accidentally save the document with things that shouldnt be there.
Thanks, a lot.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
How can see what changed in document?
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: How can see what changed in document?
You could set up a wiki, on a localhost , the wiki software keeps track of all the changes and edits, but it might be to complicated for you.
https://packages.debian.org/jessie/python-moinmoin
https://moinmo.in/
You can look at this, it will give you a idea of how it keeps track of all the changes to any pages, (documents) and shows what the previous page looked like before it was edited.
https://wiki.debian.org/RecentChanges
For example: I looked at "info" , on this document:
https://wiki.debian.org/InstallingDebia ... ction=info
================
https://wiki.debian.org/InstallingDebia ... 1=1&rev2=2
https://packages.debian.org/jessie/python-moinmoin
https://moinmo.in/
You can look at this, it will give you a idea of how it keeps track of all the changes to any pages, (documents) and shows what the previous page looked like before it was edited.
https://wiki.debian.org/RecentChanges
For example: I looked at "info" , on this document:
https://wiki.debian.org/InstallingDebia ... ction=info
================
https://wiki.debian.org/InstallingDebia ... 1=1&rev2=2
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
Re: How can see what changed in document?
if you edit a file with gedit in a git repo (just init git in the folder first), it automatically displays (ok, it's proably a plugin) the lines that have changed since last edit (commit) in the left margin with a color. When using a git you will never again have the problem that you saved a version that you didn't want, as you have all the changes and the full history so that you can go to whatever version you ever want at any time.
Re: How can see what changed in document?
This sounds good, but I would have to learn first some about git..pylkko wrote:if you edit a file with gedit in a git repo (just init git in the folder first), it automatically displays (ok, it's proably a plugin) the lines that have changed since last edit (commit) in the left margin with a color. When using a git you will never again have the problem that you saved a version that you didn't want, as you have all the changes and the full history so that you can go to whatever version you ever want at any time.
ok, I think I will go for this solution of my own Ive just created.:
katec
Code: Select all
#!/bin/sh
#
cp $1 $1.bak
echo "### ESTA ES LA COPIA ####" >> $1.bak
kate $1 &
kompare -c $1.bak $1
rm $1.bak
Thanks to All, for your help
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...
Re: How can see what changed in document?
This new version, updates reference file comparison everytime we close kompare, and next, It opens comparison again. It breaks the loop when closing kate.
katec
katec
Code: Select all
#!/bin/sh
#
kate $1 2> /dev/null &
while true; do
if [ -z "$(pidof kate)" ]
then
break
else
if [ -z "$(pidof kompare)" ]
then
cp $1 $1.bak
echo "### ESTA ES LA COPIA ####" >> $1.bak
kompare -c $1.bak $1 2> /dev/null &
else
echo "nothing" 1> /dev/null
fi
fi
done
killall kompare
rm $1.bak
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...