-
Notifications
You must be signed in to change notification settings - Fork 293
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 gnome shell search provider #48
Comments
Terminix also has an identical search to Gnome Terminal, with Regex. |
Oh... After reading your comment I finally found it! But that are some issues with it:
I'll change the title, thanks. |
Looks better! maybe showing the number of the results somewhere too? |
Unfortunately the terminal widget I'm using doesn't support things like showing the number of results or highlighting all matches. You can see the docs for it here if interested: https://developer.gnome.org/vte/0.40/VteTerminal.html |
That looks great, thanks a lot for taking the time to do this, let me see what I can do to emulate it. I particularly like how you have the options right after the search box which follows the flow of a user does a search, much better then at the end where I have it. With respect to switches, Gnome HIG is to use switches for hardware devices (i.e. like the terminal bell in preferences) and checkbuttons for options which is the case here. |
Nice, thanks for point to the HIG! I was a little confused because the new Nautilus search uses a switcher to turn on/off the "Search Subfolders" option. |
@gnunn1 the icons are |
That's what I'm using already, I guess it's just differences in icon packs On Sat, Jan 23, 2016 at 5:21 PM, Bilal Elmoussaoui <notifications@github.com
|
The default icons(Adwaita) are the same as in the mockup of @brunelli |
Improved search box rolled out with 0.45, going to edit this to just reflect the search provider enhancement. |
Btw, the next and previous need to be marked as insensitive if there's no more previous/next results ! 👍 |
Good point, the find previous/next does return a bool indicating whether a match is found, so I couldn't make the buttons insensitive until at least one failure happened. There is also the wrap around option that this would need to work with as well. I'll play around with it and see if some sort of reasonable behavior can be achieved. |
Gnome search provider is dependent on #24, adding DBus support. |
According to [1], if your application is a GApplication and it does not override the default command line argument parsing function, it is very simple to make it DBus-activatable. I can make a simple PR to enable that it that is the case. |
I looked at that link, from a code perspective Terminix should work with this as I am using the built-in command line handling for GTKApplication. If you have time to put together a PR for this that would be great. Note I do override the local handling but that's only there from when I was debugging and the value it returns indicates default processing should continue, I'll remove it though as it adds no value. The gnome-search-provider does require a specific interface to be implemented though: https://developer.gnome.org/SearchProvider/ If you want to go further and write some D code to tackle that as well I'd be happy to accept a PR here too, but it might be a bit of effort as D does not have great integration with DBus at this point. I can give you some more detailed thoughts on this if you want to try though. |
Well, I've done the easy part, i.e. sent a PR that makes Terminix DBus activatable. Works For Me. I've also investigated the state of DBus bindings for D. I looked at EDIT: Feel free to drop some ideas, as I may try to dig deeper when I have the chance. [1] https://github.com/trishume/ddbus |
My plan was to leverage the existing DBus support in GtkD, see here for the docs for DBusServer as a starting point. GtkD already supports Dictionary and I'd strongly prefer to stick with this implementation because it fits in seamlessly since Terminix is already using GtkD for the user interface. The issue with the GtkD implementation is that it is low level with callbacks requiring C functions declared in D versus extern. I'd want to wrap this to make it more user friendly and to allow DBus to interface easily with D objects/delegates which is what the library at [1] is doing. So essentially a composite approach where we would use a similar style to [1] but based on the existing GtkD APIs instead of re-importing the C functions and introducing a potentially different memory management strategy. This is a fair amount of work and this feature, while nice to have, isn't critical so for me this is somewhat low priority. |
I am not trying to push or anything. I just wanted to say that I used to use gnome search to switch between terminals quite a lot when I was using gnome-terminal. It is very handy. |
GNOME Terminal has a search feature that allows you to search terminal outputs, see here.
It has a GNOME Shell search provider (very useful) and it even lets you search using regex.
It'd be very nice to have this feature added into Terminix too.
The text was updated successfully, but these errors were encountered: