You are not logged in.

#676 2012-02-29 09:41:26

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

Re: dwb - a webkit web browser

jakob wrote:

After pressing o, typing in a string is there any difference between pressing »Tab« and »Control-Shift-b«?

The difference is that Control-Shift-b only completes bookmarks where Tab also
completes history.

Offline

#677 2012-02-29 09:43:09

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: dwb - a webkit web browser

portix wrote:

The difference is that Control-Shift-b only completes bookmarks where Tab also
completes history.

Ah, I’ve disabled history completely, that’s why it looked the same to me. Thanks!

Offline

#678 2012-02-29 17:42:40

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: dwb - a webkit web browser

jakob wrote:
Onyros wrote:

Finally, I can't seem to set "Control+Tab" to cycle between tabs, I tried using Control S-Tab and a few other combinations but none worked, is there a solution for this?

Hello Onyros,

just to be sure, you know about the bindings gT and gt, right?

Yup, jakob. I use both combinations. Sometimes it's handy to use Control+Tab, others I just gt or gT (got used to it from vim, obviously).

Meaning, sometimes when I have my right hand on the mouse I use Control Tab, when I'm fully keyboarding I use gt (gT). I defined Control Tab on the keys, and gt (gT) on the custom keys file.

Even though I do use DWM+dwb, I still use the mouse. I'm not ratpoisoning my setups, and won't. I like the combination, it's more practical for me smile

Last edited by Onyros (2012-02-29 17:45:54)

Offline

#679 2012-02-29 18:52:28

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: dwb - a webkit web browser

@Portix,

Thanks, that was exactly what I was looking for!

EDIT: question. Is there a reason that Control-B bookmark completion only works for the o shortcut, but not for when I type the full :open command?

Last edited by bananagranola (2012-03-01 05:39:45)

Offline

#680 2012-03-01 13:31:25

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

Re: dwb - a webkit web browser

bananagranola wrote:

question. Is there a reason that Control-B bookmark completion only works for the o shortcut, but not for when I type the full :open command?

Oh, that is a bug. I started to rework the whole tabcompletion implementation, this will be fixed when it is done, but it still takes some time.

Offline

#681 2012-03-01 16:23:05

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: dwb - a webkit web browser

portix, I use ZZ to close tabs (pretty much like vim), but when there's only one tab left it doesn't close dwb. Is there a simple way of making it work I missed or is that really the intended behaviour?

Offline

#682 2012-03-01 16:53:39

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

Re: dwb - a webkit web browser

Also, on using ZZ and gZZ, how can I restore a named session ?


.:[ git me! ] :.

Offline

#683 2012-03-01 18:38:13

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

Re: dwb - a webkit web browser

Onyros wrote:

portix, I use ZZ to close tabs (pretty much like vim), but when there's only one tab left it doesn't close dwb. Is there a simple way of making it work I missed or is that really the intended behaviour?

No, that is not intended and i cannot reproduce it.

c00kiemon5ter wrote:

Also, on using ZZ and gZZ, how can I restore a named session ?

You can restore a session with -r or --restore

man dwb wrote:

       -r, --restore <name>
                     Restore session with name <sessionname> or the default
                     session, if sessionname is omitted.

Last edited by portix (2012-03-01 18:38:26)

Offline

#684 2012-03-01 18:58:07

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: dwb - a webkit web browser

Wow, it's great to have such an active developer. Thanks for the quick reply!

Offline

#685 2012-03-03 18:14:31

JustasM
Member
Registered: 2012-03-03
Posts: 2

Re: dwb - a webkit web browser

Hi. I use this code to set keymap to switch layouts:

 setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll 'us,lt' 

In 'us' layout everything is fine, but then I switch to 'lt' none keys are working, I can't write commands, because colon don't work too. Everytime I have to switch back to 'us' to move on. 'lt' layout changes only numbers on the top of keyboard. In INSERT mode everything normal. What I'm missing?

Love this browser and this is the last anoying problem about it. Thanks in advance smile Sorry if question is silly and sorry for broken english smile

Offline

#686 2012-03-03 18:40:21

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: dwb - a webkit web browser

JustasM wrote:

Hi. I use this code to set keymap to switch layouts:

 setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll 'us,lt' 

In 'us' layout everything is fine, but then I switch to 'lt' none keys are working, I can't write commands, because colon don't work too. Everytime I have to switch back to 'us' to move on. 'lt' layout changes only numbers on the top of keyboard. In INSERT mode everything normal. What I'm missing?

Love this browser and this is the last anoying problem about it. Thanks in advance smile Sorry if question is silly and sorry for broken english smile

Hey, I use the following portion in 10-evdev.conf to switch between my default German Neo2 and German qwertz layout using Scroll-Lock:

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard     "yes"
    Option              "XkbLayout" "de,de"
    Option              "XkbVariant" "neo,basic"                # Neo als Standard, QWERTZ als zweite Belegung
        Option          "XkbOptions" "grp:sclk_toggle,grp_led:scroll"  # Drücken von Scroll-Lock wechselt zwischen neo und qwertz, Scroll-LED zeigt Wechsel an
EndSection

And have the same problem: When switching layouts with the xkboption, dwb doesn’t recognize “i” or “o” in command mode, although it’s possible to type text into a field when Insert-Mode is active (e.g. via mouse click) and “Esc” also works.

However, switching the layout via commandline “setxkbmap de” for instance works without a problem. Strange thing.

Offline

#687 2012-03-03 21:40:29

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

Re: dwb - a webkit web browser

I have found the reason why switching the layout breaks the keyboard handling and will fix this with the next revision which will most likely be tomorrow.

Offline

#688 2012-03-03 21:40:30

JustasM
Member
Registered: 2012-03-03
Posts: 2

Re: dwb - a webkit web browser

portix wrote:

I have found the reason why switching the layout breaks the keyboard handling and will fix this with the next revision which will most likely be tomorrow..

Very good news. Thanks for so fast response and for active development smile

Last edited by JustasM (2012-03-03 21:43:53)

Offline

#689 2012-03-04 06:06:50

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: dwb - a webkit web browser

I was trying to access the Pandora website today, and realized that for some reason it doesn't load. Scripts are allowed on that page, and I toggled it several times just to make sure. Scripts are working fine on other websites, such as Google Calendar. Is there a reason for this?

EDIT: I meant plugins, not scripts. smile Flashplugin is installed.

Last edited by bananagranola (2012-03-04 08:00:51)

Offline

#690 2012-03-04 10:07:47

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

Re: dwb - a webkit web browser

I don't know what the pandora website is, there are several websites called pandora and pandora.com is not available in my country, i don't know if i can access it via a proxy.

Offline

#691 2012-03-04 11:20:37

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

Re: dwb - a webkit web browser

@banaagranola: Have you tried to completely disable the pluginblocker?

@JustasM, jakob: The issue with switching keyboard layouts is resolved now.

Last edited by portix (2012-03-04 11:20:51)

Offline

#692 2012-03-04 18:15:45

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

FYI pandora worked for me here. Just needed to toggle the plugin blocker for the current host (ph).

Scott

Offline

#693 2012-03-04 18:42:02

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: dwb - a webkit web browser

Yeah, I've completely disabled the plugin blocker. I just checked. And plugins are allowed and working fine on other sites. I can access the site, but it doesn't load the flash player; it just shows the logo with that blue background and halts. Very odd. But eh, not a huge deal or anything.

Offline

#694 2012-03-04 18:48:21

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

Besides....pianobar-git is a MUCH better option for pandora! smile

Scott

Offline

#695 2012-03-04 21:17:42

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: dwb - a webkit web browser

Besides....pianobar-git is a MUCH better option for pandora!

Exactly why it's not a big deal! smile

Offline

#696 2012-03-05 19:41:55

aksr
Member
Registered: 2011-03-16
Posts: 14

Re: dwb - a webkit web browser

Hi portix. Is it possible for hints not to be automatically followed once uniquely indentified(when typing numbers/letters or link description in hint mode?

Offline

#697 2012-03-05 19:55:04

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

Re: dwb - a webkit web browser

aksr wrote:

Hi portix. Is it possible for hints not to be automatically followed once uniquely indentified(when typing numbers/letters or link description in hint mode?

There is no option for it and i will not add an option for it, it seems pointless to me. You can however move /usr/share/dwb/scripts/hints.js to ~/.config/dwb/scripts and remove lines 395-397 from that script:

    else if (array.length == 1) {
      return __evaluate(array[0].element, type);
    }

Edit: You should then also rename that script to hints.onload.js.

Last edited by portix (2012-03-05 19:56:13)

Offline

#698 2012-03-05 20:19:32

aksr
Member
Registered: 2011-03-16
Posts: 14

Re: dwb - a webkit web browser

Thanks portix, hints are a bit strange, though. I type often in the dark, often I make a mistake- wrong link is followed. This option would be useful, I think. Also, sometimes when my hands are cold, my precision at typing is very bad, so I need time to adjust. If it's no a big deal, please add this option. smile Thanks again on the quick responce.

Offline

#699 2012-03-06 06:14:36

Ranmaru
Member
From: Japan
Registered: 2011-11-20
Posts: 60

Re: dwb - a webkit web browser

Is there any way to launch an external command from within dwb? I've playing around with it for a few days and I like it very much so fast, actually better than all the other minimal keyboard-centric vi-like browsers I've tried ... it would be pretty cool if I could launch a terminal command with ! like in vim, for example to watch a YouTube video via quvi like this:

yy
:!quvi <put YT url> --exec "vlc %u"

Especially when you use a tiling WM like I do, putting the URL into another terminal window can be quite a pain, since the yanked URL doesn't really get pushed into urxvt's buffer. For now I just put it into a Google search window and copypaste it via middle click, but that seems like a dirty workaround. ^^' Or is something like this already possible and I just didn't find it?

Just saying. wink

Last edited by Ranmaru (2012-03-06 06:16:29)

Offline

#700 2012-03-06 07:23:30

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

Re: dwb - a webkit web browser

Launching a terminal from within dwb is not directly possible but you can use a script for that, just put the following executable script

#!/bin/bash 

quvi ${DWB_URI} --exec "vlc %u"

into ~/.config/dwb/userscripts. If you name that script quvi you can launch it via

:quvi

You can also bind the script to a shortcut using a custom shortcut in dwb:keys or with a modeline in the script:

#!/bin/bash 
# dwb:<your shortcut here>

Offline

Board footer

Powered by FluxBB