-
Notifications
You must be signed in to change notification settings - Fork 889
Help Needed: Searchable Open Tab Popup #2528
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
base: master
Are you sure you want to change the base?
Conversation
I usually use "Go to Symbol" or "Go to File" (can't remember what the keyboard shortcuts are... I may have customized them) for this workflow. Do you use those? Does that workflow solve the same problem for you? Still, the search field is a nice addition that can coexist with Go to Symbol/File. (There are some problems with the ordering of results in Go to Symbol/File... I've been wanting to fix that for a long time, but haven't gotten around to it yet. There's also the problem that the symbol index frequently gets corrupted for the former, but that's a deeper problem.) |
The code seems nice and simple so far; you have pointed out the remaining issues yourself. Would be a nice addition if someone decides to finish it. |
Wow thx @lkishalmi this is what I was searching and also trying by my own for so long. I checked the code and I couldn't add a shortcut for that. I know this feature in eclipse and I like it. @eirikbakke it is not like go to file Go to file has a lot of more problems. So this feature "Opened Files" needed a search field and a shortcut. Here are the tickets, that I created some years ago: https://issues.apache.org/jira/browse/NETBEANS-1263 (For adding a shortcut to open that field) and https://issues.apache.org/jira/browse/NETBEANS-1264 (Searchfield inside that popup). We need more and more shortcuts for keyboard users and unfortunately there is no action on this Opened files popup to open it. It is to small to beeing accurate with mouse and with tabs to change focus, is to complex for that. So all in all great start @lkishalmi will check the source too :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :). I dunno whether I'm allowed to give the approval so take it as a comment only. I checked the code and it looks straightforward.
Well usually Go to File and Symbol works when I have the Developer hat on. Though my daywork is a DevOps engineer working mostly outside of NetBeans projects, usually that's when this search would be handy. |
Hey @lkishalmi what is missing here to merge this into master? |
Someone who has a better Swing knowledge. Maybe @DevCharly can look at it. |
Hey @DevCharly can you please try to help here, that would be awesome :) |
Yeah, there seems to be a serious bug in ButtonPopupSwitcher, unrelated to this PR: Might be good to get this fixed before doing additional changes around this class. There's also a more cosmetic bug in the same class (discovered by @DevCharly ), filed here: |
This one is bothering me for a long time. It is not uncommon that I'm working with 100+ files opened and switching between them can be cumbersome. A filter field on the popup switcher would be a great help. I think there is even a JIRA issue on this by @Chris2011.
Well, this PR is far from being complete. Has many issues, but my deep Swing Fu is almost 20 years old and rusty. So it is about this far I could get.
The current issues are:
So I'd like if somebody with more Swing Experience could take over this one. @DevCharly ?