Home
Help
Search
Login
Register
SlickEdit Community
»
SlickEdit Product Discussion
»
SlickEdit®
»
Slick-C® Macro Programming
»
How to reference the main search window/buffer
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to reference the main search window/buffer (Read 5042 times)
Phlexx
Junior Community Member
Posts: 2
Hero Points: 0
How to reference the main search window/buffer
«
on:
September 07, 2007, 05:35:52 pm »
Hello,
I am trying to make reference to the search window, however I cannot find any documentation about it. I am utilizing fileman_find to search files, and I would like to transfer the search results to my active buffer from the search buffer with _buf_transfer. How do i reference the main search buffer (Search<0>)?
Thanks
Logged
hs2
Senior Community Member
Posts: 2759
Hero Points: 292
Re: How to reference the main search window/buffer
«
Reply #1 on:
September 11, 2007, 09:17:24 am »
'
tbsearch.e - grep_last()
' could give some useful pointers.
HS2
Logged
Phlexx
Junior Community Member
Posts: 2
Hero Points: 0
Re: How to reference the main search window/buffer
«
Reply #2 on:
September 12, 2007, 02:49:01 pm »
Thanks. grep_last() seems to do the job. It simply copies the contents of the "Search Result" buffer into a new buffer called ".search0". I can now copy from it and close it when done with it.
Logged
hs2
Senior Community Member
Posts: 2759
Hero Points: 292
Re: How to reference the main search window/buffer
«
Reply #3 on:
September 12, 2007, 03:04:16 pm »
Note that the '.search<number>' depends on your search configuration. It's not always '0'.
However, grep_last() refers to the last used search buffer/tab and that's what you need assumingly.
Good luck,
HS2
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SlickEdit Community
»
SlickEdit Product Discussion
»
SlickEdit®
»
Slick-C® Macro Programming
»
How to reference the main search window/buffer