[qutebrowser] Editing command/url line

2020-08-19 Thread Paulo Silva de Alíbano
I am looking for something similar to Bash's edit-and-execute-command. That is, 
when typing a commnad, say ":open -t www.anwebsite.com/d1/d2/d3", I would like 
to drop to my editor. The editor would have the same contents of the command 
line, ":open -t www.anwebsite.com/d1/d2/d3", 
and I would be able to edit the line and after quitting the editor, the edited 
line would be executed in Qutebrowser.

I thought edit-command was what I needed, so I tried to add

 config.bind('','edit-command')

to the config file. However, the shortcut only works if I am in "normal mode", 
which does not help because the command line will be empty. Nothing happens 
when I am typing something in the command line and try Ctrl-B. Any idea?

Thanks!
Paulo


[qutebrowser] How to unfocus a text input field?

2020-06-22 Thread Paulo Silva de Alíbano
Dear Qutebrowser,

How can we unfocus a text input field so we can continue scrolling a page with 
j and k? I could not find the answer.

For example: Open qute://settings/ and enter a text field (make as if you 
wanted to change auto_save.interval to another value). After checking you can 
insert text in that field, try to leave it with Esc.

  *   Expected behavior: Insert mode was terminated and you can use j and k 
keys to scroll down and up.

  *   Actual behavior: Insert mode was terminated but the text input cursor is 
still blinking in the field and you cannot use j and k keys to scroll.

Am I missing something obvious there? I am able to get the expected behavior if 
I click an empty area with the mouse, but in a Qutebrowser context it goes 
without saying that I prefer not to use the mouse.

Yours faithfully,
Paulo




Re: [qutebrowser] Adblock not working properly with local files

2020-05-19 Thread Paulo Silva de Alíbano
Many thanks for guiding me there, Florian, I've never been in a mailing list 
before. I apologize in advance if I make any more blunder. About your reply:

Florian wrote:
>The pictures are served from www.gravatar.com, but 
>you're only blocking
>gravatar.com. Those are two different hosts.

Indeed, after prepending "www." to the address, it worked. However, I'm afraid 
that means that lists from Disconnect (to be found in 
) cannot be 
reliably used, because they usually do not include subdomains. A more sensitive 
example is , that does not get blocked, although 
 figures in the list. Is there any way to make 
Qutebrowser parse the list and block a match even if "lower" subdomains differ?




[qutebrowser] Adblock not working properly with local files

2020-05-19 Thread Paulo Silva de Alíbano
Hi, I have the following two files with domains I'd like to block. They are 
from the Disconnect open source list which Firefox uses to block trackers of 
all sorts.

$ head -n 4 /home/abc/Downloads/blockentities.txt
127.0.0.1 2leep.com
127.0.0.1 2leep.com
127.0.0.1 33across.com
127.0.0.1 tynt.com

$ head -n 4 /home/abc/Downloads/blockservices.txt
127.0.0.1 2leep.com
127.0.0.1 33across.com
127.0.0.1 365media.com
127.0.0.1 4info.com

Then I have this list in content.host_blocking.lists: 
["file:///home/abc/Downloads/blockentities.txt", 
"file:///home/abc/Downloads/blockservices.txt"]. I have also run 
:adblock-update successfully.

However, they don't quite seem to work in blocking unwanted domains. For 
example, if I go to 
stackoverflow.com/questions,
 default avatar pictures (of new users) are still loaded, even though they are 
hosted in 
https://www.gravatar.com,
 which I have blocked in both files:

$ grep gravatar /home/abc/Downloads/*
blockentities.txt:127.0.0.1 gravatar.com
blockservices.txt:127.0.0.1 gravatar.com

In Firefox, those pictures are indeed blocked and don't show up, but in 
Qutebrowser they do show up, so I conclude the ad-blocking is not working.

However, if I add "127.0.0.1 stackoverflow.com" to any of them, then, as 
expect, I cannot access Stackoverflow anymore. So there should be something 
non-obvious there...

Am I missing some important step there or should I go to Issues on the Github?

Thanks for the great browser.