Re: [dev] [surf] Disable javascript

2012-11-15 Thread Julian Dammann
I read them, but I suppose I don't remember them... No. Not to sound too rude, but this is not the problem here... Welcome to How to answer almost all your questions about any software without wasting other people's time: 1. Is there a manual? If no goto 2 else 1a 1a. Have you read it? If no

Re: [dev] [surf] Disable javascript

2012-11-15 Thread 7heo
On 11/15/2012 10:40 AM, Julian Dammann wrote: I read them, but I suppose I don't remember them... No. Not to sound too rude, but this is not the problem here... Welcome to How to answer almost all your questions about any software without wasting other people's time: 1. Is there a manual?

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Thuban
Well, you don't know what I did, so don't judge too fast. I alsa used for a while a kind of noscript in .surf/script.js. I did read the manual, a long time ago, bit I did. And I'm sure such mistakes can happen to anyone. Le 10:40:08 le 15 nov. 2012 , Julian Dammann a écrit : I read them, but I

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Nick
Quoth Thuban: I alsa used for a while a kind of noscript in .surf/script.js. Care to share the details? I'd like to be able to disable javascript on a per site basis, but have never got around to doing that. Adding proper support in surf rather than just script.js would probably be better,

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Julian Dammann
Well, you don't know what I did, so don't judge too fast. I'm stating facts, take away any judgement you feel entitled to. Fact is: your question was trivial; the answer to your question *was* one man surf or web search away. I did read the manual, a long time ago, bit I did. And I'm sure

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Julian Dammann
On 2012/11/15 - 09:49:04 +, Raphael Proust wrote: On Thu, Nov 15, 2012 at 9:40 AM, Julian Dammann damma...@googlemail.com wrote: I read them, but I suppose I don't remember them... No. Not to sound too rude, but this is not the problem here... The problem is surf has no GUI with

Re: [dev] [surf] Disable javascript

2012-11-15 Thread skls
Nick suckless-...@njw.me.uk wrote: (...) I'd like to be able to disable javascript on a per site basis, but have never got around to doing that. (...) Hello, Sorry, not related to the per site basis : The handiest way to deal with javascript on surf at the moment is IMO the toggle patch

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Christoph Lohmann
Greetings. On Thu, 15 Nov 2012 14:11:09 +0100 Raphael Proust raphla...@gmail.com wrote: On Thu, Nov 15, 2012 at 9:40 AM, Julian Dammann damma...@googlemail.com wrote: I read them, but I suppose I don't remember them... No. Not to sound too rude, but this is not the problem here...

Re: [dev] [surf] Disable javascript

2012-11-15 Thread stanio
* s...@alternametz.org [2012-11-15 12:56]: As a side note, I wonder how difficult would it be to create a generic toggle function for surf which could be called with any WebKitWebSettings boolean parameter in config.h such as auto-load-images, enable-scripts and so on ... look for

Re: [dev] [surf] Disable javascript

2012-11-15 Thread stanio
* sta...@cs.tu-berlin.de [2012-11-15 14:34]: * s...@alternametz.org [2012-11-15 12:56]: As a side note, I wonder how difficult would it be to create a generic toggle function for surf which could be called with look for 20120602113939.GA26438 in your mailbox or

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Roberto E. Vargas Caballero
Hello, A new serie of patches that fix some problems detected in last serie: - Tab problems - Return problems in not newline modes - arrow problems Please, if you find some new errors (I am pretty sure something can happen) notice me. This new series apply over the

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Eckehard Berns
Please, if you find some new errors (I am pretty sure something can happen) notice me. For me Shift+Insert inserts \E[2;2~ just before the selection. -- Eckehard Berns

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Thuban
No problem. The method is based on a piece of code found on uzbl wiki. Just paste this in ~/.surf/script.js (see attachement). The first part of the code is just simple rules towhitelist some domains. (see examples) Have a nice day everyone! Le 10:38:28 le 15 nov. 2012 , Nick a écrit :

[dev] [st] Add insert mode

2012-11-15 Thread Eckehard Berns
I added some code to make insert mode work in st. I don't know if I missed something, but It's Working For Me(tm). Patch attached. -- Eckehard Berns diff -r 19ef42df8e7d st.c --- a/st.c Wed Nov 14 06:37:24 2012 +0100 +++ b/st.c Thu Nov 15 15:19:52 2012 +0100 @@ -2100,6 +2100,10 @@

Re: [dev] [st] Add insert mode

2012-11-15 Thread Roberto E. Vargas Caballero
On Thu, Nov 15, 2012 at 03:25:52PM +0100, Eckehard Berns wrote: I added some code to make insert mode work in st. I don't know if I missed something, but It's Working For Me(tm). Patch attached. I had a patch already ready for sending to solve this issue, but you were faster ;). I put my code

Re: [dev] [surf] Disable javascript

2012-11-15 Thread Nick
On Thu, Nov 15, 2012 at 03:29:45PM +0100, Christoph Lohmann wrote: Thanks for the patches. Toggle, insert and the status area patch are now in surf tip. And they are documented in the manpage too. Insert mode? Since when did surf become modal? Why is this needed (except for people who like to

Re: [dev] [st] Add insert mode

2012-11-15 Thread Christoph Lohmann
Greetings. On Thu, 15 Nov 2012 15:42:40 +0100 Eckehard Berns ecki-suckl...@ecki.to wrote: I added some code to make insert mode work in st. I don't know if I missed something, but It's Working For Me(tm). Patch attached. What are you using this insert mode for? Sincerely, Christoph Lohmann

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Christoph Lohmann
Greetings. On Thu, 15 Nov 2012 15:43:25 +0100 Roberto E. Vargas Caballero k...@shike2.com wrote: Hello, A new serie of patches that fix some problems detected in last serie: - Tab problems - Return problems in not newline modes - arrow problems Please, if you find

Re: [dev] [st] Add insert mode

2012-11-15 Thread Roberto E. Vargas Caballero
What are you using this insert mode for? The sequence for this mode was in st from historical times (before I met it), it changes the st mode but does nothing. Maybe you should ask to Aurielien why he implemented the set/reset sequences but not the behaviour. Best regards,

Re: [dev] [st] Add insert mode

2012-11-15 Thread Eckehard Berns
On Thu, Nov 15, 2012 at 03:42:40PM +0100, Christoph Lohmann wrote: On Thu, 15 Nov 2012 15:42:40 +0100 Eckehard Berns ecki-suckl...@ecki.to wrote: I added some code to make insert mode work in st. I don't know if I missed something, but It's Working For Me(tm). Patch attached. What are

Re: [dev] [surf] Disable javascript

2012-11-15 Thread stanio
* Nick suckless-...@njw.me.uk [2012-11-15 15:47]: Insert mode? Since when did surf become modal? Why is this needed (except for people who like to pretend they're using vim)? I agree, insert mode is quite special and maybe is worth having it as a patch rather than in mainline surf. It makes

Re: [dev] [st] Add insert mode

2012-11-15 Thread Christoph Lohmann
Greetings. On Thu, 15 Nov 2012 16:21:01 +0100 Eckehard Berns ecki-suckl...@ecki.to wrote: On Thu, Nov 15, 2012 at 03:42:40PM +0100, Christoph Lohmann wrote: On Thu, 15 Nov 2012 15:42:40 +0100 Eckehard Berns ecki-suckl...@ecki.to wrote: I added some code to make insert mode work in st. I

Re: [dev] [st] Add insert mode

2012-11-15 Thread Roberto E. Vargas Caballero
Ok, that seems like a legit feature. Which applications you encountered are using this mode? Only nvi and vi? Theorically all good applications should use this mode, but in these days is not always true. For example bash repaint the full line each time you write a line, it is very funny when

Re: [dev] [st] Add insert mode

2012-11-15 Thread Eckehard Berns
On Thu, Nov 15, 2012 at 04:21:01PM +0100, Christoph Lohmann wrote: On Thu, 15 Nov 2012 16:21:01 +0100 Eckehard Berns ecki-suckl...@ecki.to wrote: On Thu, Nov 15, 2012 at 03:42:40PM +0100, Christoph Lohmann wrote: What are you using this insert mode for? I access some machines remotely

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Roberto E. Vargas Caballero
On Thu, Nov 15, 2012 at 03:16:26PM +0100, Eckehard Berns wrote: Please, if you find some new errors (I am pretty sure something can happen) notice me. For me Shift+Insert inserts \E[2;2~ just before the selection. I attach the patch which fix this problem. From

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Christoph Lohmann
Greetings. On Thu, 15 Nov 2012 19:01:36 +0100 Roberto E. Vargas Caballero k...@shike2.com wrote: On Thu, Nov 15, 2012 at 03:16:26PM +0100, Eckehard Berns wrote: Please, if you find some new errors (I am pretty sure something can happen) notice me. For me Shift+Insert inserts

[dev] [st] function keys

2012-11-15 Thread Christoph Lohmann
Greetings. Anyone here on this mailinglist is using any of the Function keys above XK_F12? X11 is defining symbols up to F35 and xterm allows sending es‐ cape codes up to F63. The question is how to implement this in st. Anyone knows of some application in the past which made use of those

[dev] [st] some minor patches

2012-11-15 Thread Roberto E. Vargas Caballero
From fe3fa59836a389992cbf07f63a5007fb1e24f9e6 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Wed, 14 Nov 2012 19:20:28 +0100 Subject: Remove unused fields in cursor_movement --- st.c |4 1 file changed, 4 deletions(-) diff --git a/st.c b/st.c index

Re: [dev] [st] function keys

2012-11-15 Thread Raphael Proust
On Thu, Nov 15, 2012 at 6:36 PM, Christoph Lohmann 2...@r-36.net wrote: Greetings. Anyone here on this mailinglist is using any of the Function keys above XK_F12? X11 is defining symbols up to F35 and xterm allows sending es‐ cape codes up to F63. The question is how to implement this in

Re: [dev] [st] function keys

2012-11-15 Thread Carlos Torres
I've mapped F2-F12 in vim, now that i have a terminal that allows higher mappings i will probably add further mappings F1 is help. --Carlos On Thu, Nov 15, 2012 at 4:18 PM, Raphael Proust raphla...@gmail.com wrote: On Thu, Nov 15, 2012 at 6:36 PM, Christoph Lohmann 2...@r-36.net wrote: