2 feature requests - search windows , find&do sub-pattern

12 views
Skip to first unread message

Fred H Olson

unread,
Apr 29, 2026, 12:23:28 PMApr 29
to Semware
--- search current windows ---

The "a" search option to search all open files is handy unless
one has multiple unrelated to the search files open. One workaround
is to have a TSE instance with only related files open and use the "a"
option. (Another is to use Carlo's Bulkfind
( https://ecarlo.nl/tse/ToolsAndExtensions.html#BulkFind )
but I find it's user interface too awkward that I seldom use it.)

My idea is to have a search option "d" for search current windows.
("w" is already is use for word)

--- Find and do / Copy and append found sub-pattern text ---

I came across the need for this when trying to capture just the second
field in a csv file. ( Is there a clever way to interactively
(ie without writing a macro to do it) do this already? I have not found it.)

BTW is there a robust way to convert a csv file to fixed columns?
The ones I've tried sometimes fail.

Fred

--
Fred H. Olson Minneapolis,MN 55411 USA (near north Mpls)
Email: fholson at cohousing.org 612-588-9532
My Link Pg: http://fholson.cohousing.org A1l_

Carlo Hogeveen

unread,
Apr 29, 2026, 1:25:35 PMApr 29
to sem...@googlegroups.com

Fred H Olson wrote:
> ...
> --- Find and do / Copy and append found sub-pattern text ---
> I came across the need for this when trying to capture just the second
> field in a csv file. ( Is there a clever way to interactively
> (ie without writing a macro to do it) do this already? I have not found it.)

I do not know whether this counts as clever enough.
The following assumes all csv lines have the same number of fields, that ";" is their separator, and that you want to search the second field.
In steps:
Copy/paste the whole csv file to a "New File" buffer.
In that new buffer:
Delete all first fields by replacing "^[~\;]@;{.#}" by "\1" with options "gnx".
Delete all fields after what is now the first field by replacing "^{[~\;]@};.#" with "\1" with options "gnx".
Now you can use TSE's "Find and Do" menu on the remaining field.

> BTW is there a robust way to convert a csv file to fixed columns?
> The ones I've tried sometimes fail.

I tried and failed to mind-read which ones you already tried. :-)
There is the "csv2flv" macro at Semware's classic website:
https://semware.com/html/tseprofilesd.php

I have no answers regarding your other questions.

Carlo



zhong zhao

unread,
Apr 29, 2026, 9:43:01 PMApr 29
to SemWare TSE Pro text editor
l_r_align.png
l_r_align_e.s

zhong zhao

unread,
Apr 29, 2026, 9:56:23 PMApr 29
to SemWare TSE Pro text editor
To have a TSE instance with only related files open and use the "a" option:
1. Use tsepro\mac\listsave.s  --Save current opened files name to list.txt
2. Edit list.txt to delete those line unrelated
3. Use tsepro\mac\ldflist.s      --Open files those names in list.txt


Reply all
Reply to author
Forward
0 new messages