Remember that bit of code you wrote, but can't remember exactly where you wrote it?
Try using this tool to target a directory and search for a keyword inside of your code files.
Try using this tool to target a directory and search for a keyword inside of your code files.
AHK-CodeSearch I have made for [AHK-libs-and-classes-collection]
I haven’t yet to find anything better for finding program code on my computers than Fishgeek's codesearch program. Other programs certainly achieve greater speed, but the foundation Fishgeek has laid and the ease with which further code highlighting can be integrated are unique. The nicest thing is how few resources an AHK script consumes in contrast to e.g. Python, and just copying the entire Codesearch directory is enough to run the code on any other client.
You still find bugs? Do you think there is still room for improvement? Then you are more than right!
I have made a lot of changes. Not all functions are adapted to the changes, so there is still some work to be done before this version is fully functional.
- You can enter a list of directories in which to search. The script determines the file endings contained in each directory. This allows you to include or exclude certain directories for the search to speed up the search.
- all directories are checked for their existence before they are taken over
- Highlighting for Python and Ruby language and .ini files added
- additional file types can be entered and will included in search
- your checked filetypes will be saved at gui close, as well as the directory list
- Displaying line numbers
- The gui colours have been adapted to the codestyle
- Fixed incorrect behaviour when resizing the Treeview and RichCode controls
- Search in files and/or file names
- Added an RichCode (/Edit)-Control to show your found code highlighted
- class_RichCode.ahk got additional functions
- Removed the ListView for a TreeView control
- Click on a sub-item in TreeView and it scrolls into view!
- Add a context menu to the TreeView control with the options to Edit, Execute and Open Script Folder
- The width of TreeView and RichEdit-Control can be adjusted with a mouse drag in the gap between both controls
- Window position, size and the sizes of TreeView and RichCode control will be stored after closing the Gui
- Gui Resize for ListView control is working
- Showing the last number of files in directory
- Change the code to the coding conventions of AHK_L V 1.1.30.0
- Ready to enter the search string right after the start
- Pressing Enter after entering the search string starts the search immediately
- The buttons R, W, C now show their long names
- Stop/Resume Button is added - so the process can be interrupted even to start a new search
- a. from fischgeek Todo - Find an icon - i take yours and it looks great!
- the window displays the number of files read so far and the number of digits found during the search process
- Font size and window size is adapted to 4k monitors (Size of Gui is huge - over 3000 pixel width) - at the moment, no resize or any settings for the size of the contents is possible - i'm sorry for that