You are not logged in.
I'm not using the formfiller script anymore but if you have a fix for it I would include it in the source
I rewrote it in Perl:
#! /usr/bin/perl
# dwb: Control Mod1 f
# The file referenced by $FORMS needs to be formated as follow:
# url name1 value1 name2 value2 ...
use strict;
my $FORMS = "$ENV{'XDG_CONFIG_HOME'}/dwb/forms";
my $SUBMIT = 0;
my $url = $ARGV[0];
my $cmd = 'var elt;';
open FILE, "<", "$FORMS" or die $!;
while (my $line = <FILE>) {
chomp($line);
my @infos = split(/ /, $line);
my $f_url = shift(@infos);
if (index($url, $f_url) == 0) {
while (@infos) {
my $name = shift(@infos);
my $value = shift(@infos);
$cmd .= "elt = document.getElementsByName('$name')[0]; set_value(elt,'$value');"
}
if ($SUBMIT) {
$cmd .= "elt.form.submit();"
}
last;
}
}
close FILE;
print "execute_javascript $cmd\n";
And I extracted the JS function:
function set_value(elt, val) {
if (elt.type == "checkbox" || elt.type == "radio") {
elt.checked = (val.toLowerCase() !== 'false' && val !== '0');
} else {
elt.value = val;
}
}
Last edited by bloom (2012-01-13 12:54:30)
Offline
portix wrote:I'm not using the formfiller script anymore but if you have a fix for it I would include it in the source
I rewrote it in Perl:
#! /usr/bin/perl ...
And I extracted the JS function:
...
Thanks, i will include it. I can also add the title to the arguments list.
Clicking on a link with ctrl pressed doesnt open them in a new tab, intended behaviour or bug ?
This isn't a bug, pressing Button2 opens a link in a new tab. Control-Button1 is used for selecting text inside links.
It would be nice to be able to disable the download path confirmation dialog.
I will think about adding an option for it.
Offline
I need the title of the page in one of my script: could you provide it as $3?
It is added to the list of commands, the arguments are now url, title, name of the profile, the numerical modifier and an optional argument for the script, so title is $2 now.
Offline
Pressing button2 brings the context menu here
Nope, that would be button3. Button2 is middle-click.
Offline
It seems that ctrl button1 is the common shortcut in most browsers besides button2 i might also add ctrl-button1 since ctrl + button1-click currently does nothing.
Offline
Here's what I propose for the focus movement after tab deletion:
— The focus should move to one of the neighboring tabs (left or right).
— If one of the (neighboring) tabs is unvisited then the focus should move to that tab.
— If both of the tabs are unvisited or visited then the focus should move to most recently created tab.
(— And of course, if one of the tabs is missing then the focus should move to the non missing one.)
Offline
Thanks alot portix for the fix for the custom keys, when the file isn't allready available!
Also, I would also love, like bloom, an option for disabling the download path... I've many times previously thought about suggesting it, but I always hesitated because of the "spawn with ..." toggling option(ctrl+x), but if it someway could still be possible(well, I guess that the "spawn with" option then just wouldn't be available if there was an option for disabling the download path?).
Thanks also bloom, for posting that perl script for form-filling...
-- EDIT --
Thanks you sooo much, bloom and portix; you guys just simply rocks!
I've just now configured the two custom keys for fast-forward/backwards with '[' and ']', and it works perfectly! That's just simply an awesome addition to this allready brilliant browser!
Thanks again!
Last edited by mhertz (2012-01-14 16:58:05)
Offline
@mhertz: my pleasure.
If I browse to
http://twitter.com/cr4shd
Then, press 'F' and type the hint of the pic.twitter.com link (30 Nov), dwb freezes.
It also freezes if I just click the link.
Last edited by bloom (2012-01-14 20:32:17)
Offline
If I browse to
http://twitter.com/cr4shdThen, press 'F' and type the hint of the pic.twitter.com link (30 Nov), dwb freezes.
It also freezes if I just click the link.
It's an issue with all tweets, click on them and the browser freezes. Un-maximize the window, it'll work then. Which is just plain weird. Oh, and this is a webkit-gtk bug, it affects Midori too.
Last edited by Gusar (2012-01-14 18:50:42)
Offline
There is a new option 'download-no-confirm' now, if download-directory is set it downloads immediatly without asking for a path.
The twitter issue is indeed a webkit bug.
Offline
Outstanding! Thanks again!
Offline
when browsing 4chan if i open a link a new tab with F the browser crashes, if i re-launch it though the new tab has been opened, but this just happens randomly, other times it just works fine.
Last edited by clod89 (2012-01-15 15:57:37)
Offline
Yeah, I can also reproduce that here...
Offline
There is a new option 'download-no-confirm' now, if download-directory is set it downloads immediately without asking for a path.
Thanks for that!
Is there a command I could bind 'C-j' to, so that it becomes the equivalent of 'return' in the status bar?
I've tried overriding the default hints.js (I want to add padding and round corners) by copying it in $XDG_CONFIG_HOME/dwb/scripts/ but it doesn't seem to be taking precedence...
Could you add a command line option such that 'dwb -t foo', for example, will open 'foo' in a new tab in the most recent dwb instance (or in a new dwb instance if there is none)?
Could you provide some feedbacks regarding this:
https://bbs.archlinux.org/viewtopic.php … 2#p1040592
?
Offline
Is there a way I can turn off the icons on the tabs?
Offline
Is there a command I could bind 'C-j' to, so that it becomes the equivalent of 'return' in the status bar?
Currently there is no command to bind another key to return, i'll put it on my todo list.
I've tried overriding the default hints.js (I want to add padding and round corners) by copying it in $XDG_CONFIG_HOME/dwb/scripts/ but it doesn't seem to be taking precedence...
You don't need to override the hints.js script, you can use a custom stylesheet for that using the classname dwb_hint:
.dwb_hint { padding: ...; border-radius: ... }
Could you add a command line option such that 'dwb -t foo', for example, will open 'foo' in a new tab in the most recent dwb instance (or in a new dwb instance if there is none)?
There is the single instance setting. I will not add an option for opening tabs in existing instances if single-instance is not set.
Could you provide some feedbacks regarding this:
https://bbs.archlinux.org/viewtopic.php … 2#p1040592
?
This will not get the default tab behaviour, i thought already about making this easily configurable. There will be an option for it if i have a solution.
Is there a way I can turn off the icons on the tabs?
There is a new option 'enable-favicon' in last revision.
Offline
Is there a command I could bind 'C-j' to, so that it becomes the equivalent of 'return' in the status bar?
Two new shorcuts were added: entry_confirm and entry_escape.
Offline
There is a shortcut for "show bookmarks in pop-up" and when I use it bookmarks are shown in a black popup window. There doesn't seem to be a way to choose the bookmark that I want. I have tried clicking, arrow keys, j and k... I'm sure I missed something...
*edit*
... OK found it on page 6: Use tab & shift-tab to scroll.
Last edited by stryder (2012-01-16 13:39:12)
Offline
There is a shortcut for "show bookmarks in pop-up" and when I use it bookmarks are shown in a black popup window. There doesn't seem to be a way to choose the bookmark that I want. I have tried clicking, arrow keys, j and k... I'm sure I missed something...
You can choose the bookmark pressing (Shift)-Tab and select it with return.
Offline
bloom wrote:Is there a command I could bind 'C-j' to, so that it becomes the equivalent of 'return' in the status bar?
Two new shorcuts were added: entry_confirm and entry_escape.
Thanks!
Bug report: dwb crashes on 'yank_title' if the current page's title is empty.
Offline
Bug report: dwb crashes on 'yank_title' if the current page's title is empty.
Fixed.
Offline
Offline