philn / gnome-shell-gajim-extension

[UNMAINTAINED] Gajim IM integration in GNOME Shell
GNU General Public License v3.0
18 stars 2 forks source link

Ability to start chat with given contact from Gnome launcher #1

Closed szpak closed 11 years ago

szpak commented 11 years ago

A small idea for a feature request.

When I want to send a message to someone using Gajim I need to: "show" a notification area, restore the Gajim main window, type a contact name (or a part of), press enter (it takes some time). It would be nice to be able to do it (to open an internal Gajim's chat window or as an alternative a chat "window" from Gnome) by start launcher (Super key) and type something like "chat MyContactName" or "gajim MyContactName" (or maybe just a contact name?). gnome-shell-gajim-extension should be a search provider which parse a contact list from Gajim (or have it cached for consecutive calls). An user should decide do (s)he prefer a native Gajim's chat window or a version from Gnome.

Disclaimer. I don't know if this can be easily implemented.

philn commented 11 years ago

Sounds like an interesting idea, I'll see what I can do :) Thanks for passing by!

szpak commented 11 years ago

Look great (I didn't expect for example showing avatars)! Glad you were able to do it.

Small issue. Search shouldn't be case sensitive. One small improvements. It would be useful to be able to open a native Gajim chat window (for people preferring it over a chat window from Gnome shell - I don't know if remote Gajim API allow to do it).

szpak commented 11 years ago

Another small issue. When I start a chat in that way there is added an icon in a "notification area". When I click on it there a chat windows shown. When I click on that window somewhere (not in a edit component) it disappear (fine), but when I click on "X" I would expect the window to be closed definitely (e.g. also an icon removed from a notification area" - it doesn't happen). It is required to choose "remove" from a context menu.

philn commented 11 years ago

Yes it's possible, I guess it's time to add a UI for preferences to give users the choice between using the Shell chat source and calling Gajim UI. I'll fix the case sensitive search too :)

philn commented 11 years ago

I'm not sure to understand your second issue about the notification area. Can you make a screencast please?

philn commented 11 years ago

I pushed version 6, with case insensitive search and a prefs UI

szpak commented 11 years ago

Nice. Btw, don't you need prefs.js and utils.js in a dist package?

philn commented 11 years ago

Yes indeed, I'll fix the script! Thanks :)

szpak commented 11 years ago

Nevermind about an issue with "x". I checked with a notifications send with notify-send and they behaves the same, so it is probably "normal".

szpak commented 11 years ago

Probably the last thing for this issue :). When contacts are cached and Gajim was already disabled there is nothing happen when you choose a contact (try to talk with him/her). It would be probably better to display a notification that Gajim is not responding and suggest to check if it is running at a moment.

philn commented 11 years ago

Hum I'm not sure what to do in that case, actually I wonder if this could be a bug in gnome-shell. If a search provider is disabled then its search results should disappear from the UI as well, IMHO.