Bluefish: Difference between revisions

From wiki
Jump to navigation Jump to search
Created page with "My favourite code editor. In preferences - External Commands add the SaveVersion script to save a file with the current timestamp. The file is only copied if it differs from..."
 
No edit summary
 
Line 1: Line 1:
My favourite code editor.
A very nice code editor. There is no active maintenance on it since 2017. Therefor I tried [[Geany]].




In preferences - External Commands add the SaveVersion script to save a file with the current timestamp. The file is only copied if it differs from the last version saved.
In preferences - External Commands add the [[SaveVersion]] script to save a file with the current timestamp. The file is only copied if it differs from the last version saved.
 
<syntaxhighlight lang=bash>
 
#!/bin/bash
 
FILE=$1
if (( ! ls -1 "${FILE}"_* > /dev/null ) || ( ! diff "${FILE}" `ls -1 "${FILE}"_*|tail -1` > /dev/null ))
then
  cp "${FILE}" "${FILE}_"`date +%Y%m%d_%H%M%S`
fi
</syntaxhighlight>

Latest revision as of 14:48, 8 June 2019

A very nice code editor. There is no active maintenance on it since 2017. Therefor I tried Geany.


In preferences - External Commands add the SaveVersion script to save a file with the current timestamp. The file is only copied if it differs from the last version saved.