aboutsummaryrefslogtreecommitdiffstats
path: root/macros/garret.dupe-and-comment.lua
Commit message (Collapse)AuthorAgeFilesLines
* get rid of dependencycontrol bullshitgarret2024-02-251-124/+0
| | | | | | | | | | | | | | | | | | there is no sense in me keeping it around when all it does is add faff to writing the script add useless noise to the filenames/paths and enforces its opinions upon me which i dont agree with and all for absolutely ZERO reason since i don't even have a feed in the first place if you want to take my scripts and package them into a dependencycontrol feed, you are more than welcome to do so, provided you comply with the terms of the licence. but your life is going to be a little bit harder i'm afraid, sorry about that. i will keep all the script_namespace, depctrl registration and such around for the time being (removing it is >effort)
* dupe and comment: add changelog for depctrl feedgarret2023-02-161-0/+16
| | | | this will get extracted and inserted into the feed by depctrl-feedmaker
* dupe and comment: make undo handle comment status the same as dogarret2023-02-161-3/+3
| | | | | | | it no longer cares whether the edit is a comment or not. it now sets the original to whatever the edit was. better for doing stuff with comments etc
* dupe and comment: handle fold boundariesgarret2023-02-161-9/+42
|
* dupe and comment: make variable names more informativegarret2023-02-161-4/+5
|
* dupe and comment: don't do sel/act stuff if only one linegarret2023-01-291-7/+10
|
* dupe&comment: new way of fixing sel/act that i understand even lessgarret2023-01-171-14/+12
| | | | | | though apparently it's a bit faster Co-Authored-By: Akatsumekusa <Akatsumekusa@protonmail.com>
* dupe and comment: chore: bump versiongarret2023-01-151-1/+1
|
* dupe and comment: add notes about what's going on in undo functiongarret2023-01-151-3/+11
| | | | | | not as thorough as `do` because most of `undo` is pretty clear on its own, and all of the "magic" bits have been explained in `do`. The only difference is that here it's the other way round.
* dupe and comment: format and comment new "do" implementationgarret2023-01-151-5/+14
| | | | | | | | | | | | | | | | | | | | | | i find it easier to read when the different parts are separated, and while i have done one-line `if this then do that end`s before, i've only ever done it for short operations where it's immediately obvious what's going on and you don't need to do any thinking whatsoever. e.g. this function from depctrl config: local function get_log_level(num) if num == 0 then return "0: Fatal" elseif num == 1 then return "1: Error" elseif num == 2 then return "2: Warning" elseif num == 3 then return "3: Hint" elseif num == 4 then return "4: Debug" elseif num == 5 then return "5: Trace" end return nil end I don't think the bits that fix sel and act count, at least not without comments. speaking of comments, i've added some. i hope i've understood what's going on correctly, please feel free to correct me if not.
* dupe and comment: fix sel and actAkatsumekusa2023-01-151-11/+10
| | | | | | | selected lines and active line will now be properly set after do and undo removed aegisub.util from requiredModules
* dupe and comment: fix out of range error in undogarret2022-12-241-6/+8
|
* dupe and comment: variable names that make sensegarret2022-12-151-4/+4
|
* dupe and comment: use local functionsgarret2022-11-241-3/+3
|
* add depctrl thinggarret2021-10-091-0/+55
no feed yet, will get round to it eventuallyâ„¢