Jump to content

how to disable backup before Tidy?


orbs
 Share

Recommended Posts

being my usual self i'm probably missing the obvious here. i saw the tidy ini file, but the comments says that if i set the versions count to zero it means infinite backup. so how do i disable it completely?

(also, i'm somewhat at inconvenience that my personal preferences are stored in the Program Files folder. it will be removed if i uninstall or reinstall AutoIt. i'd expect it to be in the user profile. i did find many au3 related files in the profile root (not the ideal place - better be in a subfolder. me thinks), but that's SciTe config, not Tidy.)

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

  • Developers

being my usual self i'm probably missing the obvious here. i saw the tidy ini file, but the comments says that if i set the versions count to zero it means infinite backup. so how do i disable it completely?

You can't as Tidy updates the source and creates a new file, so I won't be held accountable for any screwup by Tidy, hence there is always one latest version... the original.

(also, i'm somewhat at inconvenience that my personal preferences are stored in the Program Files folder. it will be removed if i uninstall or reinstall AutoIt. i'd expect it to be in the user profile. i did find many au3 related files in the profile root (not the ideal place - better be in a subfolder. me thinks), but that's SciTe config, not Tidy.)

Isn't this the case in the latest couple of versions of the SciTE4AutoIt3 installer?

Jos :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

You can't as Tidy updates the source and creates a new file, so I won't be held accountable for any screwup by Tidy, hence there is always one latest version... the original.

 

understood, thanks.

 

Isn't this the case in the latest couple of versions of the SciTE4AutoIt3 installer?

 

that may be, but i'm not interested in SciTe config, but with Tidy config. is there a way i modify it - for example, change the backup folder path - and keep the config not in the Program Files folder? (i'm not referring to wrapper directives, i want it for all my scripts)

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

  • Developers

 

that may be, but i'm not interested in SciTe config, but with Tidy config. is there a way i modify it - for example, change the backup folder path - and keep the config not in the Program Files folder? (i'm not referring to wrapper directives, i want it for all my scripts)

Sorry, but it is still not clear to me. The tidy config file is located in %LOCALAPPDATA%AutoIt v3SciTETidy when you have used the installer and SCITE_USERHOME exists.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

The tidy config file is located in %LOCALAPPDATA%AutoIt v3SciTETidy when you have used the installer and SCITE_USERHOME exists.

 

i first noticed it in "C:Program Files (x86)AutoIt3SciTETidy", hence i guess the confusion. now i see it also exists in the path you mentioned. however i can not get it to work. here's what i did:

i copied TidyV2_Example.ini to TidyV2.ini and changed as follows:

* * *   Target backup directory which defaults to Scriptdir\Backup. Any other directory needs to exist or else it will use the default directory!
backupDir=C:\Users\user\AppData\Local\Temp

(my username is "user", the path exists - it's my %TEMP% folder).

re-launched SciTe, did Tidy => backup file was still saved in scriptdirbackup.

tried with %TEMP% => same result. removed the V2 suffix => same result.

what am i missing?

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

  • Developers

Works fine for me, What do you see in the SciTE console when doing Ctrl+T?

It tells you what the backup file is:

+> Tidy AutoIt3 finished. Original copied to:"C:\Users\Jos\AppData\Local\temp\test_old1.au3"

Can you show me the total content of tidy.ini as well?

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

the console output shows that the backup file is created in the scriptdirbackup folder (that's how i know my config does not apply). i also delete this folder constantly, and it is re-created by Tidy.

this be the file C:UsersuserAppDataLocalAutoIt v3SciTETidyTidy.ini

[ProgramSettings]
 * * *  Indent  0 = Tabs  >0 = Number of Space
tabchar=0

 * * *  Update Functions/Keywords/Macros/UDFs to Proper case
proper=1

 * * * Update Constants defined in the "constant Include files"
properconstants=0

 * * *  Update Variables to: 1=LowerCase; 2=UpperCase; 3=First Dim/Local/Global or "First_Seen" Case
vars=3

 * * *  Update Spaces around Delimiters
delim=1

 * * *  Add comment to EndFunc statement e.g. "EndFunc   ;==>UDF_Name"
endfunc_comment=1
 * * *  Ingnore EndFunc statement comments.
#~ endfunc_comment=0
 * * *  Remove comments from EndFunc statement.
#~ endfunc_comment=-1

 * * *  Added comment to EndRegion and make it the same as the #Region Comments.
endregion_comment=1
 * * *  Ingnore EndFunc statement comments.
#~ endregion_comment=0
 * * *  Remove comments from EndFunc statement.
#~ endregion_comment=-1


 * * *  Indent #region sections
region_indent=1

 * * *  Generate Documentation file for the Program and optionally Display it with Notepad at the end ot the Tidy run
Gen_Doc=0
Gen_Doc_Show=0

 * * *   Keep x Version of the File before the Tidy run and optionally store them in SubDirectory "\Backup"
KeepNVersions=1

 * * *   Target backup directory which defaults to Scriptdir\Backup. Any other directory needs to exist or else it will use the default directory!
backupDir=C:\Users\user\AppData\Local\Temp

 * * *   Remove Empty lines from Script Source
Remove_Empty_Lines=

 * * *   1=Show Tidy Errors in Console   9=Debug Output
ShowConsoleInfo=

 * * *   Run DIFF program at the end of the Tidy run to show the difference between original and new program.
#~ ShowDiffPgm=C:\Progra~1\WinMerge\winmerge.exe "%new%" "%old%"

 * * *  End With NewLine: 0=Strip Lastline CRLF;   1=Always end with RCLF (Default) 
End_With_NewLine=1

i'm using AutoIt v3.3.10.2 (SciTe v3.3.7, Tidy v2.4.0.0), but that's after several upgrades and re-installations. i plan to make a clean installation on a VM for further testing.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

  • Developers

Looks like you are running an old version which doesn't support the new setup.

 

*** Updated Tidy v2.4.0.1 (Jos) - Added support for SCITE_USERHOME.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

thanks, i'll (eventually...) upgrade.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...