InFile
The program searches for text within files.
I wrote this program to help me find code I have already written. One of its uses is as an addition to Steve's 'Little Helper', for example if you wanted a refresher on how you managed to get a TrayIcon to work a year ago, then this will find the code in seconds. It uses 2 'Tasks' to make the program flow nicely and the search is very fast, especially if searching text files. (3,718 Gambas class files searched in less than 2 seconds).
Please feed back any comments or issues.
InFile
Re: InFile
steve here it works perfectly ...
- cogier
- Site Admin
- Posts: 1128
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: InFile
I have re-compressed the file anyway so if you have had trouble the link above is now different.
Re: InFile
OK, 3rd time lucky! Its now OK.
The tar is now almost twice the size.
Thanks Charlie.
The tar is now almost twice the size.
Thanks Charlie.
- BruceSteers
- Posts: 1589
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: InFile
I think there was a recent change in gambas that no longer makes these files, i think they are made at runtime now so any new gambas project will be missing them.
This should not stop a project loading in the IDE tough.
Sometime I delete my .gambas folder and then load in the IDE and recompile the project to fix a glitch, it just remade the .gambas folder/files, only thing i found the IDE did not like is a missing .project file.
Wishing well.
Bruce
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- BruceSteers
- Posts: 1589
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: InFile
Darn it, this could potentially stop ANY pre-made gambas exe working on an older without recompiling as the binaries will be missingBruceSteers wrote: ↑Saturday 6th February 2021 8:04pmI think there was a recent change in gambas that no longer makes these files, i think they are made at runtime now so any new gambas project will be missing them.
Wishing well.
Bruce
I need to investigate this...
Okay I investigated and found the files DO get made :-\
not sure where i'm getting my odd ideas from lol sorry
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- BruceSteers
- Posts: 1589
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: InFile
Handy App Charlie , I like it
I just had to add this to FMain ..
also after my first try I though some more default options would be good like for example "exclude .gambas files / hidden files / backup files / etc" a little for loop on the resulting string[] after the patern matching was my thought.
Nice though. muchos handy
Bruce
I just had to add this to FMain ..
Public Sub ComboBoxSearchText_Activate()
Object.Raise(ButtonSearch, "Click")
End
Just so pressing return launched the search too also after my first try I though some more default options would be good like for example "exclude .gambas files / hidden files / backup files / etc" a little for loop on the resulting string[] after the patern matching was my thought.
Nice though. muchos handy
Bruce
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- cogier
- Site Admin
- Posts: 1128
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: InFile
Nice code Bruce, thanks. I will add this to InFile.
EDIT
Bruce, in your code above what is the advantage of Object.Raise(ButtonSearch, "Click") compared with ButtonSearch_Click?
I'll look into that. Thanks again for the input.also after my first try I though some more default options would be good like for example "exclude .gambas files / hidden files / backup files / etc" a little for loop on the resulting string[] after the patern matching was my thought.
EDIT
Bruce, in your code above what is the advantage of Object.Raise(ButtonSearch, "Click") compared with ButtonSearch_Click?
- BruceSteers
- Posts: 1589
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: InFile
It seemed to me to be a more "correct" way.cogier wrote: ↑Sunday 7th February 2021 11:51am Nice code Bruce, thanks. I will add this to InFile.
I'll look into that. Thanks again for the input.also after my first try I though some more default options would be good like for example "exclude .gambas files / hidden files / backup files / etc" a little for loop on the resulting string[] after the patern matching was my thought.
EDIT
Bruce, in your code above what is the advantage of Object.Raise(ButtonSearch, "Click") compared with ButtonSearch_Click?
Usually i would just use ButtonSearch_Click() but i have had issues when running functions from inside a KeyHandler event. I wasn't sure if the Activate was a proper Key event but just played it safe, i figured raising the event properly was a better way
If at first you don't succeed , try doing something differently.
BruceS
BruceS