You are not logged in.
1) How does Jumanji know when to call the script when I hit 'f' or 'F'? Is the 'script' keyword in jumanjirc specifically tied to hinting scripts? (that would be rather weird)
2) Can someone explain to me which function gets called first in that script? I just do not see it (maybe I am lacking Javascript skills, which I do...).
If you look at the sc_follow_link function (called when you hit f - see config.def.h for what functions are called on what keypresses), you will see that it calls the show_hints() javascript function. That function needs to be in one of the scripts you loaded.
Offline
jumanji segfaults when trying to visit this link. I am assuming all swf links
Confirmed. Segfaults here as well.
Didn't try other swf's, however.
To know or not to know ...
... the questions remain forever.
Offline
... I would certainly say a "monolithic" (albeit lightweight) browser that provides integration features (only) if they are not too complicated, seems like the best approach to me.
I agree. It just makes for a more pleasant user experience, which IMHO outweighs the added power/flexibility of having everything scriptable.
Offline
Could someone give me a hint on how to map a key specific zoom-levels? I know I can type '200Z' for 200% zoom, but I'd like to pin that to a single key stroke (e.g.: 3)
I tried with map and bmap, but didn't succeed:
map 3 zoom "SPECIFIC 200"
map 3 zoom 200
bmap "^3$" zoom 200
...
Thanks and best wishes!
Last edited by benito (2010-08-02 15:40:44)
Offline
And I have another feature suggestion: Please enable users to include own scripts (javascript, shell, ...) and bind keys to execute them. This is one killer feature from uzbl for me: I could easily write my own post-script for my own bookmarking-server.
I'd love to see jumanji evolve a little more and use it every day. It's already very promising!
Offline
Two thoughts:
1. There are some sites such as netflix and google reader that scroll around extremely slowly in jumanji (and dwb -- another webkit browser), but are normal in firefox & chromium. Is this a webkit problem that's fixable in each browser, or something that has to be fixed within webkit? Right now that's my only hesitation in switching full time -- I love these alt browsers!!
2. Would it be possible to add into the hinting features the ability to find links labelled 'next' or 'previous' and have a key that activates those (like ]] does in vimperator) ? Portix's letter hinting script works really well, and I can't wait for the hinting branch to get released!
Thanks!
Scott
Last edited by firecat53 (2010-08-02 16:54:16)
Offline
Hello,
and I can't wait for the hinting branch to get released!
I guess this will not happen in foreseeable time, because we are waiting for two bugs to be fixed in webkit (I use a version that I patched myself):
So in the end we are waiting for a new webkit version to be released that can be used. Before that I will not merge it into master.
Best regards
pwmt.org : programs with movie titles
Offline
Hello,
firecat53 wrote:and I can't wait for the hinting branch to get released!
I guess this will not happen in foreseeable time, because we are waiting for two bugs to be fixed in webkit (I use a version that I patched myself):
So in the end we are waiting for a new webkit version to be released that can be used. Before that I will not merge it into master.Best regards
interesting. Which bugsfixes and patches are you talking about?
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Hello,
firecat53 wrote:and I can't wait for the hinting branch to get released!
I guess this will not happen in foreseeable time, because we are waiting for two bugs to be fixed in webkit (I use a version that I patched myself):
So in the end we are waiting for a new webkit version to be released that can be used. Before that I will not merge it into master.Best regards
This is really a pity!!
Well, I decided not to wait too long and finally adapted my VimNav navigation script to work with Jumanj. It is available here: JumNav.js
I did it because the (otherwise appreciated) hinting script by portix does not catch all elements I'd like it to. JumNav, while still not perfect , attempts to catch some more element types and simulate mouseclicks on a wider element range.
JumNav is configurable, see the user configuration section on the script top. You can define your own collation sequences (leters/numbers to be used for the hints) there. Currently it defaults to an "optimal" sequence by which JumNav tries to find the shortest possible hinting labels using letters and/or numbers as they will fit.
URL navigation works in most cases as far as I tried, although still not all link types on a complicated constructed page will be recognized. So does the emulation of mouse clicks on a rather wide range of element types.
There is one annoying behavior, however, which I cannot easily solve. When JumNav does an action by its own (selecting an input field or clicking some button on the page) it cannot notify Jumanji of this action. Thus Jumanji does not get out of its navigation mode by itself. You have to press ESC to accomplish this. Annoying but as it does not happen so often I can tolerate this.
To know or not to know ...
... the questions remain forever.
Offline
[snip]
There is one annoying behavior, however, which I cannot easily solve. When JumNav does an action by its own (selecting an input field or clicking some button on the page) it cannot notify Jumanji of this action. Thus Jumanji does not get out of its navigation mode by itself. You have to press ESC to accomplish this. Annoying but as it does not happen so often I can tolerate this.
I was just about to write the same thing in regards to portix' script, which you have also linked to. It really is annoying having to hit ESC to get rid of the input line.
Last edited by Stalafin (2010-08-05 17:48:41)
Offline
I'm noticing that all of my "Keep me logged in" pages are no longer keeping me logged in. Is anyone else dealing with this, or just me?
Offline
I just wanted to ask the same questions. First I thought that it's caused by privoxy, which I always use, but a pure clean jumanji doesn't keep logins at all.
Offline
I experienced the same. I suspect there is a problem with the cookie handler.
To know or not to know ...
... the questions remain forever.
Offline
I found a solution to the ESC annoyance for JumNav, Version 0.2 here.
It requires however a small change to the jumanji.c file as given by this patch:
--- jumanji.c 2010-08-04 21:47:44.000000000 +0000
+++ jumanji.c.new 2010-08-04 20:16:38.000000000 +0000
@@ -1721,12 +1721,27 @@
if(value && strcmp(value, "undefined"))
{
- if(open_mode == -1)
- open_uri(GET_CURRENT_TAB(), value);
+ if(strcmp(value, "clicked") == 0)
+ {
+ if(Jumanji.Global.buffer)
+ {
+ g_string_free(Jumanji.Global.buffer, TRUE);
+ Jumanji.Global.buffer = NULL;
+ gtk_label_set_markup((GtkLabel*) Jumanji.Statusbar.buffer, "");
+ }
+ change_mode(NORMAL);
+ gtk_widget_hide(GTK_WIDGET(Jumanji.UI.inputbar));
+ webkit_web_view_unmark_text_matches(GET_CURRENT_TAB());
+ }
else
- create_tab(value, TRUE);
+ {
+ if(open_mode == -1)
+ open_uri(GET_CURRENT_TAB(), value);
+ else
+ create_tab(value, TRUE);
- sc_abort(NULL);
+ sc_abort(NULL);
+ }
}
}
Basically it is this: If JumNav handles a situation (input field selection, button click) by itself it returns a special value to Jumanji, "clicked" as currently set up. This causes Jumanji to clear the global buffer and change mode back to normal, but does not alter the viewport's contents. If you e.g. selected an input field you should be able to immediately type on there.
The script has been only gloabally tested as yet. Thus I'd appreciate any feedback whether it sufficiently works in other setups.
To know or not to know ...
... the questions remain forever.
Offline
There is yet another jumanji.c code change necessary in order to have the JumNav script properly run.
--- jumanji.c 2010-08-06 11:14:32.000000000 +0000
+++ jumanji.c.new 2010-08-06 11:14:46.000000000 +0000
@@ -1619,6 +1619,14 @@
Jumanji.Global.buffer = temp;
gtk_label_set_markup((GtkLabel*) Jumanji.Statusbar.buffer, Jumanji.Global.buffer->str);
}
+ /* Make sure the follower script gets known of the buffer change */
+ if(Jumanji.Global.mode == FOLLOW)
+ {
+ /* not sure if there will be side effects by the NULL value
+ * but it will not be used in this case after all */
+ Argument argument = {0, NULL};
+ sc_follow_link(&argument);
+ }
}
}
@@ -1713,8 +1721,24 @@
else
cmd = g_strdup("focus_next()");
}
- else if(Jumanji.Global.buffer && Jumanji.Global.buffer->len > 0)
- cmd = g_strconcat("update_hints(\"", Jumanji.Global.buffer->str, "\")", NULL);
+ else if(Jumanji.Global.buffer)
+ {
+ if(Jumanji.Global.buffer->len > 0)
+ {
+ cmd = g_strconcat("update_hints(\"", Jumanji.Global.buffer->str, "\")", NULL);
+ }
+ else if(Jumanji.Global.buffer->len == 0)
+ {
+ /* probably not needed actually (see below), just for being sure */
+ cmd = g_strconcat("update_hints(\"", "", "\")", NULL);
+ }
+ }
+ else
+ {
+ /* jumanji removes the buffer if it gets cleared on a delete operation
+ * (hopefully there are no nasty side effects) */
+ cmd = g_strconcat("update_hints(\"", "", "\")", NULL);
+ }
run_script(cmd, &value, NULL);
g_free(cmd);
Apply this patch after the one supplied in my former post. (I have saved them as jumnav-1.diff and jumnav-2.diff respectively.)
This patch makes sure that the script gets notified of buffer changes made by backspace deletes of the rightmost character. And it handles the situation when jumanji has removed the global buffer when it became empty. This notification is necessary to have JumNav properly update the hinting labels.
Have fun navigating!
Last edited by bernarcher (2010-08-06 11:37:38)
To know or not to know ...
... the questions remain forever.
Offline
Great!!! I'm using it right at the moment, but I'll have to take a look into the config.h to know all the shortcuts. But the first impression is really promising!
edit: What I have to say is, this browser is as fast as surf, but seems to have a lot more features. Maybe it will even replace uzbl here, which is really slow compared to jumanji or surf.
Oh really ? I'm just into uzbl yesterday, I just switch to uzbl and leave fancy onces [ ff / chrome ] behind . And now another change I love it because of vimperator like
I'm not used to uzbl much
Just test here: http://celtickane.com/labs/web-browser- … benchmark/
uzbl is faster on my PC
nXqd
Last edited by nXqd (2010-08-07 01:58:28)
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
Hello,
Just test here: http://celtickane.com/labs/web-browser- … benchmark/
What are we going to compare? webkit vs webkit?
Best regards
pwmt.org : programs with movie titles
Offline
I compared the UI performance and the startup time, yes uzbl is really slower here.
Offline
Attempting to initiate jumanji script in /etc/rc.local.
The system here uses x and kde4 and there is some delay after reaching desktop for some daemons to execute.
Have attempted ....sleep 10 & jumanji google..... but there is no response.
Appreciate the performance of jumanji on my x86_64 system.
Hoping for a solution.................
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
neldoreth, i've updated the project url in the startpost to the new address http://pwmt.org/projects/jumanji
ᶘ ᵒᴥᵒᶅ
Offline
Attempting to initiate jumanji script in /etc/rc.local.
May I ask why? There is no good reason to start a browser at the end of the init process (and rc.local is mostly apt to run stuff as root). The best way to coordinate jumanji with your X session is to launch it from ~/.xinitrc (probably kde has also a GUI for autostarting apps, but I have not used it in the last decade).
Mortuus in anima, curam gero cutis
Offline
Answer to question: I am root and wish to enable 8 url's without entering commands.
This allows tabbing to all 8 as desired.
Another eight could be ready in a text file and so on..............
Will try the kde suggestion, thanks.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
No luck with kde as yet with the normal terminal statement ....jumanji google.com...
Perhaps a different command is necessary for kde autostart.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Fwiw, jumanji is available at ...archlinux.fr with a 717 version via pacman -Sy.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Find that if I use kde4 autostart and setup for program, I am able to establish the eight jumanji tabs in a functioning window. These tabs are not identified with their names when I use the following as the "program":
jumanji google.com.aol.com yahoo.com archlinux.org shoutcast.com vimeo.com hulu.com slashdot.com
The tabs respond correctly and all are functional.
The input data needs to be modified to enable the tabs to have names, as is normal with jumanji.EDIT: Sorry my oops, had to wait until download completed. All ID's are provided. Solved with kde4 autostart...............
How to?
EDIT2: When using the terminal to enter the jumanji URL's, the terminal display remains in the background, the window searched by jumanji is separate.
With the kde4 method of initiating jumanji multiple url's, the terminal display is absent and each URL is selectable with gt or tab commands. A cleaner arrangement.
Last edited by lilsirecho (2010-08-08 01:08:56)
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline