Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add search for nodes in GistFile TreeView #6

Open
dustinkredmond opened this issue Apr 12, 2022 · 5 comments
Open

Add search for nodes in GistFile TreeView #6

dustinkredmond opened this issue Apr 12, 2022 · 5 comments

Comments

@dustinkredmond
Copy link
Contributor

Need to look at adding a search field within the TreeView to allow searching for content in the GistFiles. A single search field with fuzzy searching on GistFile name would provide a big improvement. Allowing to search on source code within each file may be better, but may also prove to be a more expensive operation due to the speed limitations imposed by the GitHub API.

@EasyG0ing1
Copy link
Contributor

EasyG0ing1 commented Apr 12, 2022 via email

@dustinkredmond
Copy link
Contributor Author

I agree, probably best not to reinvent the wheel here. I will need to do some research. There are some good Python libraries that I know off of the top of my head, but none in Java that I can think of.

@EasyG0ing1
Copy link
Contributor

EasyG0ing1 commented Apr 13, 2022 via email

@EasyG0ing1
Copy link
Contributor

EasyG0ing1 commented Apr 13, 2022 via email

@EasyG0ing1
Copy link
Contributor

EasyG0ing1 commented Apr 15, 2022

@dustinkredmond - I added a very basic search feature above the tree. You won't see it, but if you move the mouse pointer to just above the tree, you'll see it turn into an I beam ...

Screen Shot 2022-04-14 at 6 37 03 PM

You have to click once in the text field as that primes the Search class with the treeRoot so it can build everything it needs to do the search.

So just click in the search field, start typing, and when you see a number of hits that seem relevant, just keep hitting the enter key and it will cycle through the hits for you.

Download 3.4.43 in releases.

It uses the text from the gist name, description, file name, and file description (if you added any) ... which, by the way, is what the TextArea is above the code window when you have a file selected ... you can type in a description for the file itself... the search searches all text except any file contents ... if you want it to include the contents of the files in the search, just go to Edit / Settings and in the first tab, you can enable that.

Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants