Yes, I realise that, but it's probably out of my skill set
Built-In Tweak Editor
-
kiwichick
- Posts: 673
- Joined: 08 Aug 2012 04:14
- Location: Windows 10 Pro 22H2, 150% scaling
Re: Built-In Tweak Editor
Windows 10 Pro 22H2
-
yusef88
- Posts: 1148
- Joined: 28 Jan 2013 03:50
- Location: Windows 8.1 32-bit
Re: Built-In Tweak Editor
editconf , "Tweak:"; maybe you can increase functionality of this command to handle tweaks-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
Re: Built-In Tweak Editor
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.
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..
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.
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..
You do not have the required permissions to view the files attached to this post.
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Built-In Tweak Editor
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...
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
-
eil
- Posts: 1864
- Joined: 13 Jan 2011 19:44
Re: Built-In Tweak Editor
The main problem with tweaks is that if i remember correctly not all have ;tweak mark before them.
Win 7 SP1 x64 100% 1366x768|1900x1080
-
kiwichick
- Posts: 673
- Joined: 08 Aug 2012 04:14
- Location: Windows 10 Pro 22H2, 150% scaling
Re: Built-In Tweak Editor
Exactly! Makes them difficult find by just searching the ini file.
Windows 10 Pro 22H2
-
GreetingsFromPoland
- Posts: 284
- Joined: 29 Sep 2022 14:20
- Location: Win10 @125%
Re: Built-In Tweak Editor
maybe developer can take a few minutes to update the missing ini file tweak prefixes.
-
kiwichick
- Posts: 673
- Joined: 08 Aug 2012 04:14
- Location: Windows 10 Pro 22H2, 150% scaling
Re: Built-In Tweak Editor
That would definitely help.GreetingsFromPoland wrote: ↑24 Nov 2022 23:49 maybe developer can take a few minutes to update the missing ini file tweak prefixes.
Windows 10 Pro 22H2
-
GreetingsFromPoland
- Posts: 284
- Joined: 29 Sep 2022 14:20
- Location: Win10 @125%
Re: Built-In Tweak Editor
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: 284
- Joined: 29 Sep 2022 14:20
- Location: Win10 @125%
Re: Built-In Tweak Editor
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!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 ?
-
Norn
- Posts: 504
- Joined: 24 Oct 2021 16:10
Re: Built-In Tweak Editor
I suggest a list box, or the "Tag List" list box.
You do not have the required permissions to view the files attached to this post.
Windows 11 24H2 @100% 2560x1440
-
GreetingsFromPoland
- Posts: 284
- Joined: 29 Sep 2022 14:20
- Location: Win10 @125%
Re: Built-In Tweak Editor
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.
i am guessing that WatchDevices is new also ? and the ; Tweak... section is below all of them, like a block comment of sorts.
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).WatchNetwork=1
WatchRemovable=0
WatchVirtual=1
WatchDevices=0
; Tweak: auto-refresh search results
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
Re: Built-In Tweak Editor
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.
There is problems with it but it does do the basics.
You do not have the required permissions to view the files attached to this post.
-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
Re: Built-In Tweak Editor
I have since tried it on my laptop and found I had not fixed certain things
here is the updated script. 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.
here is the updated script. 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.
You do not have the required permissions to view the files attached to this post.
XYplorer Beta Club