Skip to content

Simultaneous replace#1109

Closed
ghost wants to merge 7 commits intomainfrom
unknown repository
Closed

Simultaneous replace#1109
ghost wants to merge 7 commits intomainfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 18, 2026

In the replace dialog, if both the "Replace" and "With" strings have the same positive number of pipe symbols, then offer to do a respective simultaneous replace.
For instance, if:

  • "Replace:" is equal to "ab|cd|ef" and
  • "With:" is equal to "gh|ab|cd"
    then after choosing "Replace All", the user will be offered to conduct a simultaneous replace.
    Answering "yes" to this offer will e.g. replace "abcdefab" by "ghabcdgh".
    Answering "no" will resume with the vanilla logic.

aleph789 added 7 commits February 18, 2026 13:54
In the replace dialog, if both the "Replace" and "With" strings have the same positive number of pipe symbols, then offer to do a respective simultaneous replace.
For instance, if:
- "Replace:" is equal to "ab|cd|ef" and 
- "With:" is equal to "gh|ab|cd"
then after choosing "Replace All", the user will be offered to conduct a simultaneous replace.
Answering "yes" to this offer will e.g. replace "abcdefab" by "ghabcdgh".
Answering "no" will resume with the vanilla logic.
=
Traditionally, the typesetter supports various special commands (e.g., $synctexoption, $fullname, $basename, $suffix, $directory). Here, we add two more:
$linenumber - expands to the line number at which the cursor is currently located.
$jobname - expands to "-jobname=outfilename", where outfilename is the name of the PDF to be created by the typesetter. Its value is set by a magic comment.
For instance, to assign "handout" as the name of the corresponding PDF, add the following line to the header of your TeXfile:
%!TEX jobname = handout
Equivalent to the outcome of mouse right-click and then choosing "jump to source"
@ghost ghost closed this by deleting the head repository Mar 1, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants