View Finds buffer suggestions.

32 views
Skip to first unread message

eli...@partner.net.il

unread,
Apr 3, 2024, 4:36:06 PMApr 3
to tse...@freelists.org, tsepro...@freelists.org, sem...@googlegroups.com

Hi.

  1. Attached required changes in the User Interface file to add own View Finds buffer for each edited file (The tse.ui file as an example).

 

Used a special View Finds Buffers History.                                     

When TSE loaded this History is being created.                                 

When each file opened – View Finds buffer is created and added string to        

View Finds Buffers History, which contains current edited file buffer ID and   

his View Finds buffer ID.                                                      

When file closed - its View Finds Buffer and string in                         

View Finds Buffers History are deleted.                                        

When the TSE is terminated - View Finds Buffers History are deleted.  

 

             Every time another file is switched to - also switched View Finds Buffer.      

 

  1. Sometimes it becomes necessary to adjust the standard heading of View Finds Buffer,  for example, first replace the word ‘occurrences

with the specific name of the searched item, and only after that open the pop-up window.

             I have to do this:

              PushKey(<Escape>)             

lFind(item, 'iv')             

GotoBufferId(found_id)        

GotoLine(1) 

etc.

correcting the text

ViewFinds()

......

Ugly: screen flashes!

It is advisable to be able to not open the window automatically after searching with ‘v’ option,

but use ViewFinds() command.      

 

 

Best regards,

              Eliyahu Trigoub

Multi_ViewFindsBuf.s

Carlo Hogeveen

unread,
Apr 9, 2024, 9:51:20 AMApr 9
to sem...@googlegroups.com

Because changes to a User Interface file are an obstacle for TSE updates, I rewrote Eliyahu’s code into an autoloadable macro and optimized it a bit:
https://ecarlo.nl/tse/DemosAndTests.html#Multi_ViewFindsBuf

Carlo




From: sem...@googlegroups.com <sem...@googlegroups.com> On Behalf Of eli...@partner.net.il
Sent: Wednesday, 3 April, 2024 22:36
To: tse...@freelists.org; tsepro...@freelists.org; sem...@googlegroups.com
Subject: [TSE] View Finds buffer suggestions.

Hi.
1. Attached required changes in the User Interface file to add own View Finds buffer for each edited file (The tse.ui file as an example).

Used a special View Finds Buffers History.
When TSE loaded this History is being created.
When each file opened – View Finds buffer is created and added string to
View Finds Buffers History, which contains current edited file buffer ID and
his View Finds buffer ID.
When file closed - its View Finds Buffer and string in
View Finds Buffers History are deleted.
When the TSE is terminated - View Finds Buffers History are deleted.

Every time another file is switched to - also switched View Finds Buffer.

2. Sometimes it becomes necessary to adjust the standard heading of View Finds Buffer, for example, first replace the word ‘occurrences’
with the specific name of the searched item, and only after that open the pop-up window.
I have to do this:
PushKey(<Escape>)
lFind(item, 'iv')
GotoBufferId(found_id)
GotoLine(1)
etc.
correcting the text
ViewFinds()
......
Ugly: screen flashes!
It is advisable to be able to not open the window automatically after searching with ‘v’ option,
but use ViewFinds() command.


Best regards,
Eliyahu Trigoub
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/000d01da8606%2488df9210%249a9eb630%24%40partner.net.il?utm_medium=email&utm_source=footer.

zhong zhao

unread,
Apr 11, 2024, 8:55:50 PMApr 11
to SemWare TSE Pro text editor
Try cvextkq.s attached.
cvextkq.s
Reply all
Reply to author
Forward
0 new messages