Built-In Tweak Editor

Features wanted...
kiwichick
Posts: 557
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: Built-In Tweak Editor

Post 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.
Windows 10 Pro 22H2

yusef88
Posts: 1123
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Built-In Tweak Editor

Post by yusef88 »

editconf , "Tweak:"; maybe you can increase functionality of this command to handle tweaks

mazot
Posts: 42
Joined: 20 Apr 2020 23:19

Re: Built-In Tweak Editor

Post 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 47 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..

highend
Posts: 13260
Joined: 06 Feb 2011 00:33

Re: Built-In Tweak Editor

Post 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;
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

eil
Posts: 1609
Joined: 13 Jan 2011 19:44

Re: Built-In Tweak Editor

Post by eil »

The main problem with tweaks is that if i remember correctly not all have ;tweak mark before them.
Win 7 SP1 x64 100% 1366x768

kiwichick
Posts: 557
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: Built-In Tweak Editor

Post 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.
Windows 10 Pro 22H2

GreetingsFromPoland
Posts: 213
Joined: 29 Sep 2022 14:20

Re: Built-In Tweak Editor

Post by GreetingsFromPoland »

maybe developer can take a few minutes to update the missing ini file tweak prefixes.

kiwichick
Posts: 557
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: Built-In Tweak Editor

Post 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.
Windows 10 Pro 22H2

GreetingsFromPoland
Posts: 213
Joined: 29 Sep 2022 14:20

Re: Built-In Tweak Editor

Post 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 ?

GreetingsFromPoland
Posts: 213
Joined: 29 Sep 2022 14:20

Re: Built-In Tweak Editor

Post 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!

Norn
Posts: 415
Joined: 24 Oct 2021 16:10

Re: Built-In Tweak Editor

Post by Norn »

I suggest a list box, or the "Tag List" list box.
Attachments
Edit Tweaks.png
Edit Tweaks.png (71.17 KiB) Viewed 784 times
Win10, Win11 @100% 2560x1440 22H2

GreetingsFromPoland
Posts: 213
Joined: 29 Sep 2022 14:20

Re: Built-In Tweak Editor

Post 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).

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Built-In Tweak Editor

Post by admin »

It will be in the UI soon anyway... :)

mazot
Posts: 42
Joined: 20 Apr 2020 23:19

Re: Built-In Tweak Editor

Post 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 37 times

mazot
Posts: 42
Joined: 20 Apr 2020 23:19

Re: Built-In Tweak Editor

Post 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 27 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.

Locked