Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#63 Keybindings for WebHelper

open
webhelper (3)
5
2011-01-12
2011-01-12
F1r3Fl3x
No

Hey, Geany got a whole lot better with the WebHelper plugin, but it's still needs some features.
The first one i can think of is a keybinding for showing/hiding WebHelper when it's uses the separate-window option. that would be really useful.
It's really annoying when i accidentally close the window and there's no way to bring it back unless i restart Geany. That doesn't sound so bad, but when you're editing something and want to press ctrl + z and you have just restarted the editor and there's no history saved...

Discussion

  • One part seems to be a bug (that you can close the window). Which WM do you use? (It seem to bypasses the no destroy flag of the window, so might be useful for testing ^^)

    About the feature, don't you think it might get confusing for the user if the browser disappears? Wouldn't a shortcut to move the browser window back and forth Geany's window better?

     
  • F1r3Fl3x
    F1r3Fl3x
    2011-01-13

    About the closing i use Gnome on F14 with Compiz running. When i close the window, the next time i open Geany, the config values about the window position and geometry are reset. Also when i minimize the window it disappears completely.
    The window acts as a part of Geany's window or something like that. It behaves like it's not a separate window. It's not shown in the application switcher (when i hit alt+tab) nor in DockbarX nor in the native panel applet. I don't know if that's the behavior that is expected.

    I guess if the user doesn't know about the keybinding it can get confusing. But if it's empty (not set) by default and you have to manually configure it like the other empty shortcuts in the Geany keybinding configuration window there will be no problem.

    Tomorrow i'll post a screen cast of my desktop to show you how i use it. I guess many other users will be using it the same way as i do and they'll need this feature. But i think that implementing both features (my suggestion and yours) wouldn't be so hard. (i really don't know much about C/C++ so i might be wrong).

     
  • This should be fixed in SVN, there is now a keybinding :)
    The bug that made the window disappear should be also fixed (e.g. you can't
    destroy it anymore).

    > Also when i minimize the window it disappears completely.
    > The window acts as a part of Geany's window or something like that. It
    > behaves like it's not a separate window. It's not shown in the application
    > switcher (when i hit alt+tab) nor in DockbarX nor in the native panel
    > applet. I don't know if that's the behavior that is expected.
    It's expected, but maybe it's annoying since switching doesn't work then…
    However, it then appears in the taskbar, which may be annoying. It's easy to
    change though, so it's only a usability question. What do you think?
    If the web view appears in the pager, maybe the keybinding is irrelevant
    (since you can use the WM shortcut to switch), not sure either.

    > I guess if the user doesn't know about the keybinding it can get
    > confusing. But if it's empty (not set) by default and you have to manually
    > configure it like the other empty shortcuts in the Geany keybinding
    > configuration window there will be no problem.
    Good point; I did it this way.

    > Tomorrow i'll post a screen cast of my desktop to show you how i use it. I
    > guess many other users will be using it the same way as i do and they'll
    > need this feature.
    Would be probably interesting ^^

    > But i think that implementing both features (my
    > suggestion and yours) wouldn't be so hard. (i really don't know much about
    > C/C++ so i might be wrong).
    It wouldn't be difficult (since now most stuff is already done), but I would
    not add a useless feature that would only bloat the plugin.

     
  • F1r3Fl3x
    F1r3Fl3x
    2011-01-14

    Here's a small preview of me using the plugin :)
    The screencast is really crappy, but that's the best i can do. I'm writing a simple torrent tracking system, which i'll release in the open source world soon :) I did most of the UI stuff and i'm left with the backend part only, but i managed to show you how i make a close button for a notification box work nicely :D
    http://pub.pockata.org/Geany/Screencast.ogv

    >change though, so it's only a usability question. What do you think?
    >If the web view appears in the pager, maybe the keybinding is irrelevant
    >(since you can use the WM shortcut to switch), not sure either.
    It depends on the speed of showing / hiding the window. If it appears slowly, it would be better to show it in the pager. But i really can't speak for all users, because there's no two alike :) Maybe put in an option to show the the window in the pager?

    >but I would not add a useless feature that would only bloat the plugin.
    Your previous idea - "to hide the window in the background instead of hiding it completely" would seem rather useless if you make a 'show in task bar' and a hide/show keybinding :)

    I'll install the SVN version in a bit :) I can't wait to use the keybinding xD

     
  • > […]
    > http://pub.pockata.org/Geany/Screencast.ogv
    Not sure I understand why WebHelper is better for you than any browser
    when I see you using it… lot of mouse interaction, you move the web view
    in and out, etc. It's not a criticism, you use it as you prefer using
    it, the way you feel the better :)

    But I can't tell for example, would you prefer or not if Geany's window
    could be on top of the web view window? I guess in some situations it
    would be better and some worst, but I can't really tell the one would be
    better. (I personally don't care, I'd place the windows next to each
    others, without overlapping -- needs a quite big screen though ^^)

    So, what are the features that make you work better with the plugin than
    without?

    > It depends on the speed of showing / hiding the window. If it
    > appears slowly, it would be better to show it in the pager.
    Should be immediate.

    > But i really can't speak for all users, because there's no two
    > alike :)
    Of course, and that's why feedback is necessary :)

    > Maybe put in an option to show the the window in the pager?
    Well… it's a possible option. If it appears both makes sense in
    different situations, might be a good idea :)

    > Your previous idea - "to hide the window in the background instead of
    > hiding it completely" would seem rather useless if you make a 'show in
    > task bar' and a hide/show keybinding :)
    Right. Let's see how you feel after testing the new version :)

     
  • F1r3Fl3x
    F1r3Fl3x
    2011-01-18

    It's great! I've played a lot with the plugin and i love it ^^
    But there's something strange. Sometimes i accidentally switch to Cyrillic input and the keybinding for WebHelper doesn't work!? I tried 10-15 other key bindings and they worked, but not WebHelper's. It's not a big thing, but sometimes i get annoyed :D

    PS. On the "Not sure I understand why WebHelper is better for you than any browser" question: WebHelper is faster, lighter on resources, and it can't distract me from my tasks. (when i see my bookmarks in FF, i just can't help clicking on one of them :D). We're studying C/C++ at school and i'm going to go deeper and learn how to write plugins for Geany and i'll make a simple sql browser or make a code lint plugin. I just have some exams next week and after that i can get to work. Can you give me some tips on what to read?

     
  • > But there's something strange. Sometimes i accidentally switch to
    > Cyrillic input and the keybinding for WebHelper doesn't work!? I tried
    > 10-15 other key bindings and they worked, but not WebHelper's. It's
    > not a big thing, but sometimes i get annoyed :D
    It doesn't work at all or it doesn't work when the web view/web
    inspector window is focused? I use quite a hack to make Geany's
    keybindings work on the other windows ATM, maybe it has problems with
    some input methods… I probably gotta find a better way to do this.

    > PS. On the "Not sure I understand why WebHelper is better for you than
    > any browser" question: WebHelper is faster, lighter on resources, and
    > it can't distract me from my tasks. (when i see my bookmarks in FF, i
    > just can't help clicking on one of them :D).
    Haha :D OK I see, thanks :)

    > We're studying C/C++ at school and i'm going to go deeper and learn
    > how to write plugins for Geany and i'll make a simple sql browser or
    > make a code lint plugin. I just have some exams next week and after
    > that i can get to work. Can you give me some tips on what to read?
    Basically, the docs! Most info are in there, of course the API doc, but
    also howto, guidelines, etc. And if you have questions, just ask as
    explained on the website (IRC or ML basically).

     
  • > But there's something strange. Sometimes i accidentally switch to
    > Cyrillic input and the keybinding for WebHelper doesn't work!? I tried
    > 10-15 other key bindings and they worked, but not WebHelper's. It's
    > not a big thing, but sometimes i get annoyed :D
    Could you try with SVN r1858? Might fix the bug -- not sure however.

     
  • F1r3Fl3x
    F1r3Fl3x
    2011-02-09

    It works like a charm :) You can consider adding a "show on start up" option, because it gets in the way sometimes :)