Re: [gedit-list] Proposed enhancement



At 12:15 -0500 2/5/09, Brandon Thomas wrote:
I'm looking for a way that gedit can save its backups as a revision history instead of just ~. Currently I've modified my gnome session to run a bash script which performs the following:

gconftool-2 --set --type=string /apps/gedit-2/preferences/editor/save/backup_copy_extension .`date "+%Y%m%d"`~

<ftp://ftp.macnauchtan.com/Software/gedit/Archive>

is a perl script configured as a gedit tool that might help. I have been using it for a while and I took some time to document it after the __END__ line in the source text.

The result is a time-stamped copy of the current document. I have been thinking about a scheme using the diff tool to create patch files that represent differences between current and next-recent archive files.

The gedit enhancement that would make it work better is a couple of additional ${GEDIT_...} environment variables that might be passed to tools. In particular a dirty flag to indicate if the current document has been changed and not yet saved. A way for a tool to remember something small like a string in gedit's environment variable space so it would be delivered when the tool is next called would do the trick.
--

--> From the U S of A, the only socialist country that refuses to admit it. <--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]