Are remarks in wincmd.ini possible?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 84
- Joined: 2010-04-19, 15:50 UTC
Are remarks in wincmd.ini possible?
Hi,
A very minor question,
Is there a way I can write a remark line (like documentation)
in file wincmd.ini?
Thank you
A very minor question,
Is there a way I can write a remark line (like documentation)
in file wincmd.ini?
Thank you
Re: remark in wincmd.ini
No.
You can add comment lines but the sort order will not be preserved.
You can add comment lines but the sort order will not be preserved.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: remark in wincmd.ini
lezerogan2 wrote: 2022-06-28, 19:34 UTC
Is there a way I can write a remark line (like documentation) in file wincmd.ini?
Yes, with an semicolon ; (it's a unsupported features, but I use this for ten years)
May NOT work for every parameter as the programmer didn't had foreseen a user would ever use comments in the INI.
Code: Select all
[Configuration]
UseIniInProgramDir=7 ;7=nimm diese INI im TC-Programmordner
;TitleExtraText=$THIS IS MyTestTC used as %USERNAME%
;TitleExtraText=$%USERNAME% @ %ComputerName% ÄöÜß?
InplaceRenamePath=1 ;1=Pfad wechseln per Klick auf parent in der Pfadzeile
SpaceMovesDown=1 ;1=Auswahl per SPACE-Taste, dann springe eine Datei weiter nach unten
DirBrackets=0
;ExecUseContextMenu=0
ExecUseContextMenu=0
InplaceOkButton=0 ;2=Bestätigungsschaltfläche
MinimizeOnClose=3 ;1=X-Button; 2=A-F4; 3=both; hold Shift to force close.(03.11.10 Added)
RenameUpDown=0 ;turns off jumping to previous/next file
firstmnu=2667
DrivesShowUpcase=1
[Shortcuts]
;Enable 'F2'-key to start inline-rename mode, additional to origin 'Shift+F6'
F2=cm_RenameOnly
; Load Search with saved setting
;;C+F=em_search_CurrDirOnly
;Enable 'Ctrl+F' to start find-files, additional to origin 'Alt+F7'
C+F=cm_SearchFor
;Use 'Ctrl+O' to launch DOS-Box in current path
C+o=cm_ExecuteDOS
;Ctrl+0 to execute user defined command to launch PoSh in current path
C+0=em_LaunchPowerShell
-
- Junior Member
- Posts: 84
- Joined: 2010-04-19, 15:50 UTC
Re: Are remarks in wincmd.ini possible?
Thank you
Re: Are remarks in wincmd.ini possible?
I am sure I have had problem with the settings in wincmd.ini before,
when I used the ";" semicolon somewhere in the middle of the line as specified above:
Since then I always use a separate line for comments and the ';' semicolon at the very beginning.
Example:
when I used the ";" semicolon somewhere in the middle of the line as specified above:
Code: Select all
InplaceOkButton=0 ;2=Bestätigungsschaltfläche
Example:
Code: Select all
[Configuration]
MaxItemsInComboBox=40
;MaxItemsInComboBox=40 https://ghisler.ch/board/viewtopic.php?p=330105#p330105
Re: Are remarks in wincmd.ini possible?
That could be.tuska wrote: 2022-06-29, 07:33 UTC I am sure I have had problem with the settings in wincmd.ini before,
when I used the ";" semicolon somewhere in the middle of the line as specified above:Code: Select all
InplaceOkButton=0 ;2=Bestätigungsschaltfläche
Depends how the programmer split the string "InplaceOkButton=0 ;2=Bestätigungsschaltfläche" into command and argument.
If he just split at '=' and take the second part in whole (not envisaging user could have add an comment), he will get "0 ;2=Bestätigungsschaltfläche"
Only if he split at the '=' and next take the part only till the first white space, he gets "0 "
If he can't be sure that there could be only one number but more to catch, then the shown inline comment may disturb the code executing.
That's why I said that commenting in wincmd.ini is unsupported and so have to be used on own risk.
Re: Are remarks in wincmd.ini possible?
And when a new value for a setting is written to the ini file, the comment is lost.
And not all settings support comments. This is an example of a setting where an inline comment doesn't work:
And not all settings support comments. This is an example of a setting where an inline comment doesn't work:
Code: Select all
CompareResyncSeparators=., ;:_+-*/\?!()[]{}"'@
Re: Are remarks in wincmd.ini possible?
2Stefan2
Perhaps just for clarification:
It was not the quoted line that caused a problem for me - this was only meant to serve as an example.
Perhaps just for clarification:
It was not the quoted line that caused a problem for me - this was only meant to serve as an example.
Re: Are remarks in wincmd.ini possible?
tuska wrote: 2022-06-29, 08:23 UTC 2Stefan2
Perhaps just for clarification:
It was not the quoted line that caused a problem for me - this was only meant to serve as an example.
I know

I used it as an example only too

Problematic entries would be smtg like that:
Viewer=TOOLs\Viewer123\Viewer.exe
Viewer=TOOLs\Viewer201\Viewer.exe ; use this as new viewer.exe
as you can't say programmatically for sure, w/o further checks, where the value ends and the comment begins.
Re: Are remarks in wincmd.ini possible?
Yes, now it comes back to me:Stefan2 wrote: 2022-06-29, 08:41 UTC Problematic entries would be smtg like that:
...
Viewer=TOOLs\Viewer201\Viewer.exe ; use this as new viewer.exe
...
Back then there was a problem related to a setting for a plugin in this form.