You are not logged in.

#526 2012-01-16 14:13:05

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

Re: dwb - a webkit web browser

bloom wrote:

By looking at the commit, I can tell there's a little mistake: 'C-g' should be 'entry_escape' and 'C-j' should be 'entry_confirm'.

No, that's not a mistake, if you want readline shortcuts just rebind them. I want C-j to be entry_history_forward, and C-c also acts like Escape in vim. I never used readline shortcuts i also use vi shortcuts on console and have history-forward and history-back bound to C-j, C-k.

Offline

#527 2012-01-16 14:30:53

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

portix wrote:
bloom wrote:

By looking at the commit, I can tell there's a little mistake: 'C-g' should be 'entry_escape' and 'C-j' should be 'entry_confirm'.

No, that's not a mistake, if you want readline shortcuts just rebind them. I want C-j to be entry_history_forward, and C-c also acts like Escape in vim. I never used readline shortcuts i also use vi shortcuts on console and have history-forward and history-back bound to C-j, C-k.

I forgot there were easily modifiable through the web interface, sorry, good work!


gh · da · ds

Offline

#528 2012-01-16 14:51:43

irtigor
Member
Registered: 2011-01-21
Posts: 44

Re: dwb - a webkit web browser

Hello, first of all I should say thank you, it's a good browser... there is a few itens that I would like to adress:

- Some keys to do not work as in vim, focus_next and focus_prev for example. It's not a big deal, but made my first contact a little more difficult.

- Is there any plan of a more robust spell checker? z= would be neat.

- A function to repeat the last action would also be useful (preferable with dot as key).

- I think that focus_input should trigger input mode.

- Be able to open multiple urls in a unique call of :open/:tabopen using a "urlseparator" to delimit.

And, again, thank you, keep up the good work!

Offline

#529 2012-01-16 15:14:29

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

Re: dwb - a webkit web browser

irtigor wrote:

- Some keys to do not work as in vim, focus_next and focus_prev for example. It's not a big deal, but made my first contact a little more difficult.

I know, but gt/gT is one shortcut in vim that i don't like, you can rebind them if you prefer gt/gT.

irtigor wrote:

- Is there any plan of a more robust spell checker? z= would be neat.

What do you mean with more robust? The spell checker is a webkit builtin feature and webkit uses aspell if it is installed. There are no plans to implement a different spell-checker.

irtigor wrote:

- A function to repeat the last action would also be useful (preferable with dot as key).

I don't know how useful this would be in a webbrowser, i already thought about it. It is also really simple to implement, but i couldn't imagine a situation where this could be useful, at least i never missed it but maybe i add a shortcut and test if it makes sense.

irtigor wrote:

- I think that focus_input should trigger input mode.

No, focus_input is intended to switch between input fields, if you want focus_input to trigger input mode you can unbind focus_input and define a custom comand for it

gi:focus_input;; insert_mode
irtigor wrote:

- Be able to open multiple urls in a unique call of :open/:tabopen using a "urlseparator" to delimit.

That's a good idea.

Offline

#530 2012-01-16 16:11:06

irtigor
Member
Registered: 2011-01-21
Posts: 44

Re: dwb - a webkit web browser

Thanks for answer, until now the way to define custom commands was not so clear to me, your example helped, and with "more robust spell checker" I meant the hability of view spelling suggestions for a mispelled word (like z= in vim).

Offline

#531 2012-01-16 18:21:35

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

portix wrote:
bloom wrote:

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: ... }

Works very well. It fails though, when the page uses a CSS reset (e.g. github resets padding).

— 'hints_tab' seems to work in most situations but if I browse to: foo, hit 'F' and type the label of one of the image thumbnails, then the link is opened in a new tab but also in the current tab ('hints_rapid' performs well though).

Last edited by bloom (2012-01-16 18:26:08)


gh · da · ds

Offline

#532 2012-01-16 23:41:27

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

Re: dwb - a webkit web browser

bloom wrote:

Works very well. It fails though, when the page uses a CSS reset (e.g. github resets padding).

Have you tried

padding: ...!important;

This works at least on githubs startpage.

bloom wrote:

— 'hints_tab' seems to work in most situations but if I browse to: foo, hit 'F' and type the label of one of the image thumbnails, then the link is opened in a new tab but also in the current tab ('hints_rapid' performs well though).

Fixed.

Offline

#533 2012-01-17 13:53:35

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

Hints are shifted downward on this page: hn.


gh · da · ds

Offline

#534 2012-01-17 13:54:15

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: dwb - a webkit web browser

Do you dwb users experience the problem that the mouse pointer tends to disappear, for example, when hovering over tabs? Actually for me it disappears in many areas and in many pages, even in this forum. I have noticed it only now, and I have just updated dwb-hg today. I don't have the same problem in firefox, for example.

*edit*
Just tested out luakit. No problems. Doesn't seem to be a webkit issue then.

Hmmm, restarting dwb solved the problem. Sorry. Please ignore this then.

Last edited by stryder (2012-01-17 14:09:13)

Offline

#535 2012-01-17 16:32:57

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

I can't download from filesonic using an external program (e.g. the default external command fails).

Last edited by bloom (2012-01-17 18:09:24)


gh · da · ds

Offline

#536 2012-01-17 20:26:27

redhalo
Member
Registered: 2009-08-11
Posts: 22

Re: dwb - a webkit web browser

redhalo wrote:

Is there a way I can turn off the icons on the tabs?

Any input on this?

Damn fine browser so far.

Offline

#537 2012-01-17 20:52:18

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

Re: dwb - a webkit web browser

There is already an option for it:

portix wrote:
redhalo wrote:

Is there a way I can turn off the icons on the tabs?

There is a new option 'enable-favicon' in last revision.

bloom wrote:

Hints are shifted downward on this page: hn.

There are still some issues with the hint position, they might not be correct on every site, but on this site and some other sites it is now fixed.

Offline

#538 2012-01-18 02:13:53

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: dwb - a webkit web browser

Is there a way to copy the URL of a page to the, hmm I don't know how to refer to it, the clipboard that uses "Ctrl-C". Right now I use the open url to edit option, select the URL. Ctrl-C does nothing but close the dialog. So I have to open a text file and middle click to copy it.

Also would be nice if I can select a number and choose the history-back option to jump back in history that number of lines.

Offline

#539 2012-01-18 08:54:18

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

Re: dwb - a webkit web browser

stryder wrote:

Is there a way to copy the URL of a page to the, hmm I don't know how to refer to it, the clipboard that uses "Ctrl-C". Right now I use the open url to edit option, select the URL. Ctrl-C does nothing but close the dialog. So I have to open a text file and middle click to copy it.

Also would be nice if I can select a number and choose the history-back option to jump back in history that number of lines.

yy copies the url of the currently loaded site to clipboard (the C-c clipboard) and yY copies the url to primary selection (the middle mouse button). If you want to copy the url of a link you can either use the rightclick menu and choose copy to clipboard which copies the url to clipboard and primary selection or you can use ;y and ;Y.
Some commands take a numerical modifier, you can take a look at the manpage which commands have a modifier, e.g. if you want to go 3 historyitems back you can press 3H.

Offline

#540 2012-01-18 09:20:56

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: dwb - a webkit web browser

Thanks. You have been very helpful. smile

Offline

#541 2012-01-18 10:57:03

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

— In the settings page, if I change a value and press 'Tab', the value is saved and the cursor moves to the next field but I'm also thrown out of Insert mode.

focus_input doesn't enter Insert mode: I'm not sure if this is intended and it fails to focus the search field on google, also the default 'gi' binding is not documented in the manual.

— You might want to add the following commands: show_history, show_downloads, reload_userscripts.

— 'Shift-Insert' doesn't work in the status bar.


gh · da · ds

Offline

#542 2012-01-18 11:53:08

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

Re: dwb - a webkit web browser

bloom wrote:

— In the settings page, if I change a value and press 'Tab', the value is saved and the cursor moves to the next field but I'm also thrown out of Insert mode.

You are right, this behaviour is odd. I changed it in tip.

bloom wrote:

focus_input doesn't enter Insert mode: I'm not sure if this is intended and it fails to focus the search field on google, also the default 'gi' binding is not documented in the manual.

I forgot to mention it in the manual, the behaviour is intended but it seems the everyone expects it to go into insert mode, so i may change this, personally i don't use it at all.

bloom wrote:

— You might want to add the following commands: show_history, show_downloads, reload_userscripts.

I thought about removing also show_keys and show_settings, they can be bound to
a quickmark anyway but i will add reload_userscripts when i have time for it.

bloom wrote:

— 'Shift-Insert' doesn't work in the status bar.

Now it does.

Offline

#543 2012-01-18 13:14:48

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

portix wrote:
bloom wrote:

— In the settings page, if I change a value and press 'Tab', the value is saved and the cursor moves to the next field but I'm also thrown out of Insert mode.

You are right, this behaviour is odd. I changed it in tip.

I've tested it and it seems there's a little problem: modifications are not saved (even if I call save).


gh · da · ds

Offline

#544 2012-01-18 13:21:45

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

Re: dwb - a webkit web browser

You now have to confirm a change with return, i'm not completely sure if i stick with it. Another option would be to add a save button.

Offline

#545 2012-01-18 17:43:25

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: dwb - a webkit web browser

I'll try to describe in more details the filesonic issue:

Let's consider the following external download script:

#! /bin/dash

url=$1
output=$2
cookies=$3

all_cookies=$(mktemp --tmpdir cookies.XXX)
sed 's/^#[^_]\+_//' "$cookies" > "$all_cookies"

wget -a ~/.logfoo -O "$output" --load-cookies "$all_cookies" "$url"

It works fine with mediafire and rapidshare for example but fails with filesonic:
Instead of downloading the file it produces a plain text file containing the server response:

bad hash

(filesonic works with the internal downloader.)

I made an upload for testing purpose:

foo.tgz

What could be missing?

Last edited by bloom (2012-01-18 18:50:26)


gh · da · ds

Offline

#546 2012-01-18 19:38:48

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: dwb - a webkit web browser

Hey there o/

I just started using this, and it's awesome smile

thanks!


.:[ git me! ] :.

Offline

#547 2012-01-18 19:42:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: dwb - a webkit web browser

I was thinking of making a 'set cookiemonster-accept-policy' joke, but there are just to many to choose from.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#548 2012-01-18 21:55:52

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

Re: dwb - a webkit web browser

bloom wrote:

What could be missing?

I don't know what's missing, these filehosting services do anything to prevent downloading files outside a browser. I added a new variable dwb_referer, i don't know if this helps but you can use it for wgets --referer command line option.

Offline

#549 2012-01-19 05:14:25

irtigor
Member
Registered: 2011-01-21
Posts: 44

Re: dwb - a webkit web browser

Could the open_editor be improved? I think that it should open with a copy of the already typed text in the input box.

Offline

#550 2012-01-19 07:55:27

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

Re: dwb - a webkit web browser

irtigor wrote:

Could the open_editor be improved? I think that it should open with a copy of the already typed text in the input box.

It does if you don't use an editor that doesn't detach from the parent process like gvim or any terminal editor together with urxvtc.
This might be improved by also allowing to use gvim or urxvtc.

Offline

Board footer

Powered by FluxBB