You are not logged in.

#751 2011-02-06 06:42:35

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: jumanji - a web browser

neldoreth wrote:
aluser wrote:

This browser has been doing pretty well for me. I'm just wondering if its possible to set custom commands to launch scripts.

You can use the map and spawn.

Best regards

what spawn command? when I type it it says unknown command. I'm not sure what you mean by map, isn't that only to map key sequences?

Offline

#752 2011-02-07 05:57:40

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: jumanji - a web browser

aluser wrote:
neldoreth wrote:
aluser wrote:

This browser has been doing pretty well for me. I'm just wondering if its possible to set custom commands to launch scripts.

You can use the map and spawn.

Best regards

what spawn command? when I type it it says unknown command. I'm not sure what you mean by map, isn't that only to map key sequences?

OK, then I understood it wrong: No, it is not possible to define custom commands.

Best regards


pwmt.org : programs with movie titles

Offline

#753 2011-02-07 14:52:30

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: jumanji - a web browser

I think you can map a key to spawn a script

Offline

#754 2011-02-09 23:25:49

akira86
Member
Registered: 2009-01-16
Posts: 119

Re: jumanji - a web browser

For those who are interested, 2 new commit have been pushed yesterday :
* solve the X clipboard problem (bug #38)
* make bookmark and history search/completion case insensitive (feature #81)

Offline

#755 2011-02-10 01:53:59

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: jumanji - a web browser

alterecco wrote:

I think you can map a key to spawn a script

Can you explain to me how?
Does it involve modifying the config.h?

I also have some feature requests. which are:
1. Search history by opening a new html page and have all the history there. Similar to what luakit does.
2. Search bookmarks the same way as above.
3. Downloads information in the status bar.:
5. Allow scripts to be run only on certain websites (Similar to what the greasemonkey addon does for firefox)
6. Include a follow script by default. a much better one if possible.
minor features
* Able to hide the | symbol before the title of a tab.

Last edited by aluser (2011-02-10 02:46:32)

Offline

#756 2011-02-10 01:59:42

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: jumanji - a web browser

akira86 wrote:

For those who are interested, 2 new commit have been pushed yesterday :
* solve the X clipboard problem (bug #38)
* make bookmark and history search/completion case insensitive (feature #81)

Many thanks to the jumaji team for my feature request of case-insensitive completions. As well, the X clipboard fix is great. I very much appreciate everything.

Last edited by skottish (2011-02-10 02:01:13)

Offline

#757 2011-02-10 14:08:03

Falstaff
Member
Registered: 2008-11-03
Posts: 81

Re: jumanji - a web browser

2 questions:

1) Where is the FAQ in the main site?

2) How to get "hints" working?

Offline

#758 2011-02-10 18:39:28

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: jumanji - a web browser

Hello,

I just wanted to mention that pwmt.org is not going to be dead, only inactive for several weeks since I will not be around in that time.

In the mean time we have setup a new bug tracker which is available under http://bt.pwmt.org (I still have the old issues of the redmine tracker, but I have not found the time to move them - But they will not be forgotten for the future development). In addition I have setup mailing lists where you can subscripe through http://lists.pwmt.org. After my absence there will be a new website containing more information and documentation about the projects.

Best regards and see you soon!


pwmt.org : programs with movie titles

Offline

#759 2011-02-11 09:34:39

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: jumanji - a web browser

Could someone please tell me if the option "set auto_save" is still available or not?

It's just that I don't want redundant/outdated stuff in my jumanjirc, and I then noticed that the completion for the "set " command didn't include "auto_save" and I also couldn't find it in the config.h anymore(only auto_update_interval).

I just want to know if I could might as well delete that line from jumanjirc if it's outdated anyway?

Lastly, if i may just again reiterate my feature-request for a "stable" snapshot of jumanji in addition to the git one. AUR helpers always recompiles and installs git packages, as they cannot check rev. number of different VCS's, and hence I would love a "stable" snapshot, which also after some time could be added to the official repo like zathura...

Thanks in advance.

Edit: Sorry, I'm an idiot! ...Or at least blind smile

Last edited by mhertz (2011-02-11 11:48:05)

Offline

#760 2011-02-11 11:20:47

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: jumanji - a web browser

@Falstaff

@neldoreth/other pwmt devs.

Could you please add hinting-enabling instructions to the man, and maybe first page of this thread, and when the faq comes up again, then please remove the 'outdated' comment(and add the link to portix's script) until it actually is outdated i.e. when the hinting branch is merged to master..

Thanks in advance!

Last edited by mhertz (2011-02-11 11:35:34)

Offline

#761 2011-02-11 11:57:10

Falstaff
Member
Registered: 2008-11-03
Posts: 81

Re: jumanji - a web browser

mhertz wrote:

@Falstaff

@neldoreth/other pwmt devs.

Could you please add hinting-enabling instructions to the man, and maybe first page of this thread, and when the faq comes up again, then please remove the 'outdated' comment(and add the link to portix's script) until it actually is outdated i.e. when the hinting branch is merged to master..

Thanks in advance!

Perfect. Thanks!

Offline

#762 2011-02-11 12:00:03

portix
Member
Registered: 2009-01-13
Posts: 757

Re: jumanji - a web browser

I just uploaded a new version of the hinting-script, basically it is the latest version of the dwb hinting-script with some modifications. This script might work better on some pages, especially pages with iframes.

Offline

#763 2011-02-12 18:13:53

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: jumanji - a web browser

I was trying to makepkg the jumanji-git package from aur.

Unfortunately, it does not build for me:

$ makepkg -cs
==> Determining latest git revision...
  -> Version found: 20110212
==> Making package: jumanji-git 20110212-1 (Sat Feb 12 19:05:15 CET 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
==> Connecting to GIT server....
warning: no common commits
remote: Counting objects: 687, done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 687 (delta 475), reused 679 (delta 471)
Receiving objects: 100% (687/687), 118.73 KiB, done.
Resolving deltas: 100% (475/475), done.
From git://pwmt.org/jumanji
 + 3404c35...550d9a9 master     -> origin/master  (forced update)
Auto-merging Makefile
CONFLICT (add/add): Merge conflict in Makefile
Auto-merging config.def.h
CONFLICT (add/add): Merge conflict in config.def.h
Auto-merging config.mk
CONFLICT (add/add): Merge conflict in config.mk
Auto-merging jumanji.c
CONFLICT (add/add): Merge conflict in jumanji.c
Automatic merge failed; fix conflicts and then commit the result.
    Aborting...

I do not know how to fix that...

Offline

#764 2011-02-12 18:46:28

cf8
Member
From: Russia
Registered: 2008-10-21
Posts: 83

Re: jumanji - a web browser

Stalafin wrote:

I was trying to makepkg the jumanji-git package from aur.

Unfortunately, it does not build for me:

snip

I do not know how to fix that...

You just need to resolv conflicted files. Then build it.

Offline

#765 2011-02-12 19:00:31

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: jumanji - a web browser

cf8 wrote:

You just need to resolv conflicted files. Then build it.

Yeah, that's the thing: I do not know how to do that or even start. ;-)

EDIT: Funny, I just made the package again, now it build. Weird things happening! o.O

Last edited by Stalafin (2011-02-12 19:29:38)

Offline

#766 2011-02-12 19:45:41

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: jumanji - a web browser

Alright, having installed it, I am quite happy so far, except:
Since there is no FAQ to check what to put into my jumanjirc, is there maybe an annotated sample jumanjirc or maybe a list of possible settings?

EDIT:

portix wrote:

I just uploaded a new version of the hinting-script, basically it is the latest version of the dwb hinting-script with some modifications. This script might work better on some pages, especially pages with iframes.

The script does not work when trying to open an email in google mail:
1) Hit f
2) All links get a little tag, first email e.g. 'GK'
3) I hit 'GK', all tags vanish, except for 'GK'
4) Nothing happens

Last edited by Stalafin (2011-02-12 19:49:33)

Offline

#767 2011-02-12 21:25:20

portix
Member
Registered: 2009-01-13
Posts: 757

Re: jumanji - a web browser

I found the reason, why this won't work on gmail, but i will not be able to fix this properly. There would be two possible solutions:

1. I can provide a fix that would work, but jumanji would always stay in hintmode, even after following a link.
2. Jumanji needs to be patched, so that the script can notify jumanji, that a link was clicked.

The first solution would be really annoying, so i will not do this. I could also write a patch for the second solution, but i don't think that it would get into jumanji because my script is not officially supported and they are working on a builtin hinting feature.

Last edited by portix (2011-02-12 21:26:08)

Offline

#768 2011-02-13 01:30:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: jumanji - a web browser

@portix

The newest hinting script is very nice under jumanji. It seems to be much more clean than the previous version that I had installed. Thanks for sharing.

Offline

#769 2011-02-13 02:43:50

mahatman2
Member
From: Baton Rouge, LA, USA
Registered: 2010-03-04
Posts: 46
Website

Re: jumanji - a web browser

Hi, I've been using jumanji now for about a week and it works alright, except for a few things:

> I can't seem to get a working download from gmail. I've tried the download.sh script on page 3 of this thread, and I've tried the wgetzen.sh script as well, and even the default download script. All of them give me a file but it's basically a login form for google and nothing else. Very funky.

> I would love to have some sort of password-saving feature. The midori password manager shown here doesn't work, when I call it with script in the jumanjirc. That's probably something to do with that script, though.

I think that's about it...otherwise it's an absolutely fantastic browser and I can't wait for the new pwmt.org to hit so I can see that FAQ! Thanks for a great program neldoreth.


Clever Linux quote.

Offline

#770 2011-02-13 02:52:13

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: jumanji - a web browser

mahatman2 wrote:

Hi, I've been using jumanji now for about a week and it works alright, except for a few things:

> I can't seem to get a working download from gmail. I've tried the download.sh script on page 3 of this thread, and I've tried the wgetzen.sh script as well, and even the default download script. All of them give me a file but it's basically a login form for google and nothing else. Very funky.

I've been using 'dl.patch' that I pulled off of their old bug tracker for a long time and it works. The patch hands off downloading to libwebkit. If I remember correctly, it still needs a download line in jumanji.rc:

dl.patch

 diff --git a/jumanji.c b/jumanji.c
index c350462..893dd15 100644
--- a/jumanji.c
+++ b/jumanji.c
@@ -480,6 +480,7 @@ gboolean cb_wv_button_release_event(GtkWidget*, GdkEvent*, gpointer);
 gboolean cb_wv_console(WebKitWebView*, char*, int, char*, gpointer);
 GtkWidget* cb_wv_create_web_view(WebKitWebView*, WebKitWebFrame*, gpointer);
 gboolean cb_wv_download_request(WebKitWebView*, WebKitDownload*, gpointer);
+gboolean cb_download_status(gpointer);
 gboolean cb_wv_hover_link(WebKitWebView*, char*, char*, gpointer);
 WebKitWebView* cb_wv_inspector_view(WebKitWebInspector*, WebKitWebView*, gpointer);
 gboolean cb_wv_mimetype_policy_decision(WebKitWebView*, WebKitWebFrame*, WebKitNetworkRequest*, char*, WebKitWebPolicyDecision*, gpointer);
@@ -4109,10 +4110,13 @@ cb_wv_download_request(WebKitWebView* UNUSED(wv), WebKitDownload* download, gpoi
   g_mkdir_with_parents(download_path,  0771);
 
   /* download file */
-  char* file      = g_build_filename(download_path, filename ? filename : uri, NULL);
+  char* file      = g_build_filename("file://", download_path, filename ? filename : uri, NULL);
   char* command   = g_strdup_printf(download_command, uri, file);
 
-  g_spawn_command_line_async(command, NULL);
+  webkit_download_set_destination_uri (download, file);
+  webkit_download_start(download);
+
+  g_timeout_add_seconds(1, cb_download_status, download);
 
   g_free(file);
   g_free(command);
@@ -4122,6 +4126,38 @@ cb_wv_download_request(WebKitWebView* UNUSED(wv), WebKitDownload* download, gpoi
 }
 
 gboolean
+cb_download_status(gpointer data)
+{ 
+  WebKitDownload* download = data;
+  gdouble percent = 0.0f;
+  gchar* str;
+
+  switch(webkit_download_get_status(download))
+  {
+    case WEBKIT_DOWNLOAD_STATUS_ERROR:
+    case WEBKIT_DOWNLOAD_STATUS_CANCELLED:
+      gtk_label_set_text((GtkLabel*) Jumanji.Statusbar.text, "Error downloading");
+      return FALSE;
+      break;
+
+    case WEBKIT_DOWNLOAD_STATUS_CREATED:
+    case WEBKIT_DOWNLOAD_STATUS_STARTED:
+      percent = webkit_download_get_progress(download)*100.0f;
+      str = g_strdup_printf("Downloaded %4.1f %%", percent);
+      gtk_label_set_text((GtkLabel*) Jumanji.Statusbar.text, str);
+      g_free(str);
+      break;
+
+    case WEBKIT_DOWNLOAD_STATUS_FINISHED:
+      gtk_label_set_text((GtkLabel*) Jumanji.Statusbar.text, "Finished downloading");
+      return FALSE; /* stops the timer at the same time */
+      break;
+  }
+
+  return TRUE;
+}
+
+gboolean
 cb_wv_mimetype_policy_decision(WebKitWebView* wv, WebKitWebFrame* UNUSED(frame),
     WebKitNetworkRequest* UNUSED(request), char* mimetype, WebKitWebPolicyDecision* decision,
     gpointer UNUSED(data))

Offline

#771 2011-02-13 22:42:39

mahatman2
Member
From: Baton Rouge, LA, USA
Registered: 2010-03-04
Posts: 46
Website

Re: jumanji - a web browser

oh man that looks great! I hope you don't mind, but.....do you think you could direct me to how to incorporate this into the source? I am not very "up on it" with this sort of thing....

EDIT2: Saw the thing below..

Last edited by mahatman2 (2011-02-14 16:38:12)


Clever Linux quote.

Offline

#772 2011-02-14 08:41:29

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: jumanji - a web browser

@portix

Thanks alot for updating your great hinting-script for jumanji also! Much appreciated, mate! smile

Stalafin wrote:

Alright, having installed it, I am quite happy so far, except:
Since there is no FAQ to check what to put into my jumanjirc, is there maybe an annotated sample jumanjirc or maybe a list of possible settings?

Here's the sample config listed on Arch wiki's jumanji page:

# jumanji configuration
# search engines
searchengine ggl http://www.google.com/search?q=%s
searchengine wiki http://en.wikipedia.org/w/index.php?search=%s
# browser settings
set homepage http://www.google.com/ig
set auto_save 60
# Use privoxy for adblocking
set proxy localhost:8118 
# look n feel
set font monospace normal 9
set stylesheet file:///home/inxs/.config/jumanji/style.css 
# follow hints
script ~/.config/jumanji/scripts/hinting.js
# downloads
set download_dir ~/downloads/
set download_command urxvt -e sh -c "wget --load-cookies ~/.config/jumanji/cookies '%s' -O %s";
# keybindings
map <C-,> nav_history previous
map <C-.> nav_history next
bmap ^DD$ quit

Source: https://wiki.archlinux.org/index.php/Jumanji

Btw, the listed download command will not be able to download files with spaces in their names, and also includes a redundant semicolon, so I would change that to instead:

set download_command urxvt -e sh -c "wget --load-cookies ~/.config/jumanji/cookies '%s' -O '%s'"

Also, you can get alot of inspiration from running ':set <Tab>' and tab through the list of available options and descriptions of them, or/and glancing through the config.def.h from the source tarball(good for seeing which settings are enabled by default and to which values, e.g. there's a download command defined by default, but that uses xterm which I do not have installed)...

Last edited by mhertz (2011-02-14 09:00:02)

Offline

#773 2011-02-14 16:16:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: jumanji - a web browser

mahatman2 wrote:

oh man that looks great! I hope you don't mind, but.....do you think you could direct me to how to incorporate this into the source? I am not very "up on it" with this sort of thing....

This is my PKGBUILD for jumanji-git. It assumes that the file 'dl.patch' is in the same directory. The 'patch' line will show you what was done:

# Maintainer: mlq <mlq@pwmt.org>
# Contributor: skottish <skottish97215 [AT] gmail>

pkgname=jumanji-git
pkgver=20110213
pkgrel=1
pkgdesc="a web browser"
arch=('i686' 'x86_64')
url="http://pwmt.org/projects/jumanji"
license=('custom')
depends=('gtk2' 'libwebkit' 'libunique')
makedepends=('git')
source=('dl.patch')

conflicts=('jumanji')
replaces=('jumanji')
provides=('jumanji')

_gitroot='git://pwmt.org/jumanji.git'
_gitname='jumanji'

build() {
   cd $srcdir

   msg "Connecting to the GIT server...."

   if [[ -d $srcdir/$_gitname ]] ; then
      cd $_gitname
      git pull origin
      msg "The local files are updated."
   else
      git clone $_gitroot $_gitname
   fi

   msg "GIT checkout done"
   msg "Starting make..."

   cp -r $srcdir/$_gitname $srcdir/$_gitname-build

   cd $srcdir/$_gitname-build

   patch -Np1 -i $srcdir/dl.patch
   
   make 
   make PREFIX=$pkgdir/usr install
   install -D -m664 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
   
   rm -rf $srcdir/$_gitname-build
}
md5sums=('c1659e15d74e0186a83bf52f4c8558eb')

The download command that I'm using in jumanjirc is:

set download_command /bin/sh -c "wget --user-agent=Firefox --content-disposition --load-cookies ~/.config/jumanji/cookies '%s' -O '%s'";

Last edited by skottish (2011-02-14 16:17:00)

Offline

#774 2011-02-14 16:50:53

mahatman2
Member
From: Baton Rouge, LA, USA
Registered: 2010-03-04
Posts: 46
Website

Re: jumanji - a web browser

Oh yeah, okay thanks. I actually found that it wasn't hard to figure out once I web searched "Patch file"! tongue

One more problem, though...I can't seem to run an external program with the download_command. I'd like to have a choice of which folder to download to but when I specify the earlier download.sh command (on page 3) as the download_command it doesn't run. Instead, jumanji downloads the file to my download_dir and returns this error:

** (jumanji:14020): CRITICAL **: void webkit_download_start(WebKitDownload*): assertion `priv->timer == NULL' failed

Thoughts?


Clever Linux quote.

Offline

#775 2011-02-17 09:00:49

tjwoosta
Member
Registered: 2008-12-18
Posts: 453

Re: jumanji - a web browser

Is there a way to get per domain stylesheets, like uzbl's change-style.sh?

Ive been searching the forums using google for about a half hour and all I can find is stuff about the global css file.

Offline

Board footer

Powered by FluxBB