-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find / Replace improvements #300
Comments
Most of your points in the 4th bullet sound a bit too out of scope, and would likely be better provided by automation scripts. At that point, you want something else entirely. For the second bullet point, that makes sense, but ultimately Aegisub should be consistent with how other software do it. I'm unsure if that's currently the case or not. |
I agree. This kind of bulk modification is likely much better handled by a more dedicated text editor, especially if you want to do this across several files at once. This could be fairly easily done using a modern text editor such as VSCode (e.g. using search-replace), or with a small shell script. As for the rest,
Agreed. Notably, even a keybind to
Seems reasonable and aligns with the editing programs I checked.
I'm not sure I see the use for these. Not to dismiss the suggestion, but there is a way you can (sort of) do this counting already—using Find-Replace and clicking "Replace All" will give a pop-up detailing the number of replacements done. That said, if a "Count" feature were to be added, it would be nice to give the number of matching lines as well (i.e. |
I agree, and that was my first thought, but when I did it, I then had skipped line numbers, since while deleting lines in a subtitle editor adjusts all the other line numbers, a text editor doesn't. I don't know if this actually matters, but it doesn't seem ideal. It also requires a fair bit more effort since it's not just the lines containing the text, but the preceding lines (the line number, time codes, and first line of the sub if the text is on a non-first line), as well as possibly one or more lines after (if the there are additional lines after the text in the same "line"). Not that it can't be done, but would be a lot easier to do these subtitle edits in a subtitle editor, and therefore seems perfectly within scope, but that's your call.
I admit the count function would be less useful, but I do use it often enough in Notepad++ to assume it would have occasional use in any text editor, which this ultimately is. The wrap-around option serves two purposes: to make it clear that it is or is not doing this (I spent several seconds verifying that all occurrences were renamed since it wasn't clear whether, since I'd not started at the beginning, if it had wrapped around) and provides the option to NOT do it if the user wants to make sure previous occurrences (before the selected line) aren't affected. Ultimately, since this is essentially a specialized text editor, but a text editor nonetheless, I was just taking what's useful in the primary one I use (N++) and applying it here. |
You'll need a stronger parsing script, not just search and replace in the text editor. I recommend checking out some parsers of the subtitles you need to interact with.
I don't think reinventing the workspace and multi-cursor concept would be beneficial for the project as a whole. Surely it would bring some productivity, but It's unsuited for the current workflow the application assumes. |
The text was updated successfully, but these errors were encountered: