Page 2 of 3

Re: Built-In Tweak Editor

Posted: 23 Nov 2022 08:15
by kiwichick
admin wrote: 23 Nov 2022 08:12 With scripting it can be done.
Yes, I realise that, but it's probably out of my skill set :D And, even if I were to tackle it, it would undoubtedly take me 100 times longer than someone who is more skilled than I am.

Re: Built-In Tweak Editor

Posted: 23 Nov 2022 08:53
by yusef88
editconf , "Tweak:"; maybe you can increase functionality of this command to handle tweaks

Re: Built-In Tweak Editor

Posted: 23 Nov 2022 22:46
by mazot
This is a script (not finished) but it does satisfy calls for just a list of tweaks (Unaltered).
If there is a scripter out there who can see a better/shorter way of sorting out my ruminations,
it could prove to be a springboard to a significant piece of scripting.
tweakedit.xys
(3.51 KiB) Downloaded 173 times
I have to admit that as it is I wouldn't find a need for this script.
If anyone is wondering what the numbers are at the beginning of the tweaks are, they are the line numbers,
this of course depends on your individual ini file. You may need to use a notepad equivalent to find line numbers i.e. Syn, Akelpad etc..

Re: Built-In Tweak Editor

Posted: 23 Nov 2022 23:27
by highend
The whole thing is not about getting the documented tweaks out of the XYplorer.ini file but to provide an editor that reads in a curated list of tweaks...

I got eyecancer after looking at your script for 5 seconds^^

If this would be just about getting tweaks out of the .ini file a non-optimized version could look like this...

Code: Select all

    $content  = readfile("<xydata>\<xyini>");
    $cntLines = gettoken($content, "count", <crlf>);
    $section  = "";
    $log      = "";
    while ($i++ < $cntLines) {
        $line = gettoken($content, $i, <crlf>);
        if (regexmatches($line, "^\[\w+?\]")) { $section = regexreplace($line, "(\[|\])"); }
        $desc = regexmatches($line, "^; Tweak:.*?(?=\r?\n|$)");
        if ($desc) {
            $desc = regexreplace($desc, "; tweak:[ ]*");
            $log .= $section . "<:>" . $desc . "<:>" . gettoken($content, $i + 1, <crlf>) . <crlf>;
        }
        status "Parsing line " . $i . " / " . $cntLines, , "progress";
    }
    text $log;

Re: Built-In Tweak Editor

Posted: 24 Nov 2022 20:37
by eil
The main problem with tweaks is that if i remember correctly not all have ;tweak mark before them.

Re: Built-In Tweak Editor

Posted: 24 Nov 2022 22:14
by kiwichick
eil wrote: 24 Nov 2022 20:37 not all have ;tweak mark before them.
Exactly! Makes them difficult find by just searching the ini file.

Re: Built-In Tweak Editor

Posted: 24 Nov 2022 23:49
by GreetingsFromPoland
maybe developer can take a few minutes to update the missing ini file tweak prefixes.

Re: Built-In Tweak Editor

Posted: 24 Nov 2022 23:57
by kiwichick
GreetingsFromPoland wrote: 24 Nov 2022 23:49 maybe developer can take a few minutes to update the missing ini file tweak prefixes.
That would definitely help.

Re: Built-In Tweak Editor

Posted: 06 Dec 2022 13:49
by GreetingsFromPoland
hi developer ! any chance you could take a few moments of your time and update (for consistency) the ini file definition to ensure that all tweaks have the prefix ?

Re: Built-In Tweak Editor

Posted: 16 Jan 2023 14:58
by GreetingsFromPoland
GreetingsFromPoland wrote: 06 Dec 2022 13:49 hi developer ! any chance you could take a few moments of your time and update (for consistency) the ini file definition to ensure that all tweaks have the prefix ?
hi again ! have you had a chance to update all the tweaks with the prefix ? i haven't scanned for new ones lately (working on other XY AHKs). thanks!

Re: Built-In Tweak Editor

Posted: 16 Jan 2023 16:04
by Norn
I suggest a list box, or the "Tag List" list box.

Re: Built-In Tweak Editor

Posted: 27 Jan 2023 15:37
by GreetingsFromPoland
hi! here is an example that i am unable to code for in my application. the new tweak is WatchVirtual and the ; Tweak... entry does not immediately follow so i am unable to "detect" the new/updated tweak entry.

i am guessing that WatchDevices is new also ? and the ; Tweak... section is below all of them, like a block comment of sorts.
WatchNetwork=1
WatchRemovable=0
WatchVirtual=1
WatchDevices=0
; Tweak: auto-refresh search results
i still think that a built-in editor of some sort would make it easier for us and new users that get directed by forum users to "try or use this tweak" but don't really no how/where to make the edits or feel comfortable doing so (even though there is a guide to assist).

Re: Built-In Tweak Editor

Posted: 27 Jan 2023 15:41
by admin
It will be in the UI soon anyway... :)

Re: Built-In Tweak Editor

Posted: 24 Feb 2023 20:34
by mazot
Here is my tweak editor it has taken since november as been so busy.
There is problems with it but it does do the basics.
TweakEditer.xys
(8.19 KiB) Downloaded 226 times

Re: Built-In Tweak Editor

Posted: 26 Feb 2023 10:51
by mazot
I have since tried it on my laptop and found I had not fixed certain things
here is the updated script.
TweakEditer.xys
(8.26 KiB) Downloaded 157 times
Had not informed you that to have the tweak to run it must be from the tweaks section.
It only copies any tweaks you select from "full" to the "tweaks" inisections in script folder.