Crazy, now that you say it... *thinkinghard*... guess there could really be at least partly some workarounds via macros!!
As it happens, just a few days ago I had thought the same, that e.g. it would be handy to have the action "open link in new window" when pulling upwards from a link, but the action "go to top of page" when pulling up from elsewhere in a page, or some such... And I had thought, oh well, don't think that will be available anytime soon, and at first look thought that seems not really possible just with macros. Certainly not with my restricted knowledge. But funny effect, as soon as someone else asks, the answers start flowing
Not always of course, but there's definitely something to it
Now for the workaround that I think of, it includes simply checking if context variables exist:
Is there a $LinkURL or not? Is there a $ImageURL or not? Is there a $SelectedText or not? There are more variables of that sort, listed in the wiki:
http://kmeleon.sourceforge.net/wiki/MacroLanguage#global
Sorry, don't know how to check if the context is a page (in the middle) or a tab in the tabsbar, but it's still a quite good start...
And configuration would be cumbersome, one has to modify the macros instead of doing it in the settings window... For people like you not really a prob, but certainly for most other users... And the macro command names are a bit a prob too, at the moment I tend to just name them like the action (pull up, goright or such)...
I sure would welcome your suggestion here as a "real" function too, included in the plugin and the preferences configuration! Workarounds with macros may work, but just partly, and it's just far more complicated to configure.
But hey, guess that would be the perfect second macro for you to create, what do you think? :cool: Get yourself an editor with macro syntax highlighting, then check with the error console afterwards...
Am just going to create that "pullup" example macro now and post it when ready.... am a bit slow ya know ;-) And perhaps this is just all nonsense and doesn't work at all as I imagine, will have to try and see...
Edited 1 time(s). Last edit at 02/15/2010 11:39AM by siria.