Skip to content
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

Feature request: double colon FS #23

Open
LdBeth opened this issue Feb 10, 2024 · 1 comment · May be fixed by #24
Open

Feature request: double colon FS #23

LdBeth opened this issue Feb 10, 2024 · 1 comment · May be fixed by #24

Comments

@LdBeth
Copy link

LdBeth commented Feb 10, 2024

There is an undocumented extension command from TECOC,
::FStext1$text2$, accept no numeric arguments, functioning the same as .,.+1:FCtext1$text2%, that is replace only if the string immediately after the point matches, and return search status. (The source code comment in TECOC is a bit wrong because it forgets that FS took two text arguments)

https://github.com/blakemcbride/TECOC/blob/b4a96395a18c7e64ccaef0e25fdde3b7ef33ac4b/src/exef.c#L226

@LdBeth
Copy link
Author

LdBeth commented Feb 10, 2024

Turns out this command is documented by TECO manual:

Anchored search: A search (S) or search and replace (FS) command that is preceded by a ::.

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 a pull request may close this issue.

1 participant