[dev] [ANN] surf 0.2 released

2009-10-17 Thread Enno Boland (Gottox)
Hi,

surf 0.2 is now available. Changes since 0.1.2:

* File definitions moved to config.h
* Custom context menu defined in config.h
* Various sourcecode fixes
* If possiblenew windows are now opened in new processes.
* Builtin sourcecode viewer
* User defined javascript

Direct download:
   http://dl.suckless.org/surf/surf-0.2.tar.gz
Website:
   http://surf.suckless.org/



[dev] dmenu-vertical (meillo) slow

2009-10-17 Thread Arian Kuschki
Hi all

is it just me or does dmenu with meillo's vertical patch applied get slower and 
slower the more lines you specify with the "-l" option? Anything more than 
about ten lines is unusable on my t42 using Ubuntu Karmic development version.

Cheers
Arian



Re: [dev] surf - add missing keybinding

2009-10-17 Thread pancake

- Mensaje original -
> On Fri, Oct 16, 2009 at 7:57 PM, pancake  wrote:
> > I would like to have a dupped keybinding for the showsearch.
> >
> > ...
> > 14     { MODKEY,               GDK_g,      showuri,    { 0 },          Any
> > },
> > 15     { MODKEY,               GDK_slash,  showsearch, { 0 },          Any
> > },
> > 16     { MODKEY|GDK_SHIFT_MASK,GDK_slash,  showsearch, { 0 },          Any
> > },  // ADD THIS INTO config.def.h
> > 17     { 0,                    GDK_Escape, hidesearch, { 0 },          Any
> > },
> > ...
> >
> > The problem is that in the spanish keyboard you have to press shift to get
> > the slash
> > character (it's like an uppercase 7 (seven)).
>
> Then don't use a totally retarded and braindead keyboard layouts like
> the Spanish one. Textbook case of 'if it hurts it is because you are
> doing something dumb'.

Yeah, i know that the retarded word is quite funny when you are not of them, 
but it is not quite adequate for this case.

All the keyboards suck in some or other way.

Im sure that i can type faster than you in us or es kbd. The problem here is 
that the retarded X11 is taking the slash as a single key, making the modifier 
a separated key instead of taking t as a single keysim.

Keyboard layouts and keymaps sucks. They fail by design and they are stupidly 
complicated. I hope you never had to look to a windows mobile keyboard driver.

> When I remember the pain to get a fucking ~ I still have nightmares
> and can't understand how I managed so long without switching to the
> standard US kb layout (and that was over ten years ago).

Maybe you are the retarded one. Because i never had any problem to type any 
char in the sp layout. Do you know that it is possisble to create your own 
layout modifications?

> Btw, does surf support the standard Unix text editing keybindings[1]?

Its not about surf, this is a task for gtk textentry and so on. So unless you 
write a ld.so modifying the signal handlers it will not be supported.

It can be also be implemented in javascript, but it will be pretty slow.
 
>
> uriel
>
> [1]: http://unix-kb.cat-v.org/
>
>
> >
> > Thanks :)
> >
> > --pancake
> >
> >
>



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Tadeusz Sośnierz
> > Btw, does surf support the standard Unix text editing keybindings[1]?
> 
> Its not about surf, this is a task for gtk textentry and so on. So unless you 
> write a ld.so modifying the signal handlers it will not be supported.
> 
> It can be also be implemented in javascript, but it will be pretty slow.
Add the following to your .gtkrc-2.0:
gtk-key-theme-name = "Emacs"
Should work well.
Regards,
Ted

-- 
===
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments




Re: [dev] Xinerama sucks

2009-10-17 Thread Robert C Corsaro

Uriel wrote:

On Sat, Oct 17, 2009 at 1:17 AM, Kris Maglione  wrote:
  

On Fri, Oct 16, 2009 at 07:54:02PM +0200, Uriel wrote:


If you think xinerama sucks, randr sucks even more.

http://www.modeemi.fi/~tuomov/b/2008/the_downfall_of_x/
  

Tuomo is a crack pot.



Perhaps, but what are the X.org folks then?

uriel
  
I think you are using the term crack pot improperly.  The X.org folks 
simply lack imagination.
  

--
Kris Maglione

Simplicity is the ultimate sophistication.
   --Leonardo da Vinci






  





[dev] Help with surf.

2009-10-17 Thread Tor Aqissiaq
Hi,

I've just downloaded surf 0.2 and it is very fast, but I have two problems.

1. I can't download stuff anymore.
2. I can cut and paste using the mouse.

Have these features been completely removed?

Thanks.



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Uriel
How many fucking times I have to explain that: Unix shortcuts are
*NOT* Emacs shortcuts? God fucking heavens.

uriel

2009/10/17 Tadeusz Sośnierz :
>> > Btw, does surf support the standard Unix text editing keybindings[1]?
>>
>> Its not about surf, this is a task for gtk textentry and so on. So unless 
>> you write a ld.so modifying the signal handlers it will not be supported.
>>
>> It can be also be implemented in javascript, but it will be pretty slow.
> Add the following to your .gtkrc-2.0:
> gtk-key-theme-name = "Emacs"
> Should work well.
> Regards,
> Ted
>
> --
> ===
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
>
>
>



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Uriel
On Thu, Sep 17, 2009 at 10:22 PM, pancake  wrote:
>
> - Mensaje original -
>
>> On Fri, Oct 16, 2009 at 7:57 PM, pancake  wrote:
>> > I would like to have a dupped keybinding for the showsearch.
>> >
>> > ...
>> > 14     { MODKEY,               GDK_g,      showuri,    { 0 },
>> >  Any
>> > },
>> > 15     { MODKEY,               GDK_slash,  showsearch, { 0 },
>> >  Any
>> > },
>> > 16     { MODKEY|GDK_SHIFT_MASK,GDK_slash,  showsearch, { 0 },
>> >  Any
>> > },  // ADD THIS INTO config.def.h
>> > 17     { 0,                    GDK_Escape, hidesearch, { 0 },
>> >  Any
>> > },
>> > ...
>> >
>> > The problem is that in the spanish keyboard you have to press shift to
>> > get
>> > the slash
>> > character (it's like an uppercase 7 (seven)).
>>
>> Then don't use a totally retarded and braindead keyboard layouts like
>> the Spanish one. Textbook case of 'if it hurts it is because you are
>> doing something dumb'.
>
> Yeah, i know that the retarded word is quite funny when you are not of them,
> but it is not quite adequate for this case.
>
> All the keyboards suck in some or other way.
>
> Im sure that i can type faster than you in us or es kbd. The problem here is
> that the retarded X11 is taking the slash as a single key, making the
> modifier a separated key instead of taking t as a single keysim.
>
> Keyboard layouts and keymaps sucks. They fail by design and they are
> stupidly complicated. I hope you never had to look to a windows mobile
> keyboard driver.
>
>> When I remember the pain to get a fucking ~ I still have nightmares
>> and can't understand how I managed so long without switching to the
>> standard US kb layout (and that was over ten years ago).
>
> Maybe you are the retarded one. Because i never had any problem to type any
> char in the sp layout. Do you know that it is possisble to create your own
> layout modifications?

I might be retarded, but I don't waste my life 'customizing' my
fucking keyboard layout, I use the *standard* layout that works well
for the task it is designed for: input text and code.

Asking for apps to be changed because you use a braindead keyboard
layout is just crazy.

uriel

>> Btw, does surf support the standard Unix text editing keybindings[1]?
>
> Its not about surf, this is a task for gtk textentry and so on. So unless
> you write a ld.so modifying the signal handlers it will not be supported.

That surf uses gtk is a disgrace, to depend on GTK providing sane
keybindings is a really bad idea.

> It can be also be implemented in javascript, but it will be pretty slow.

I did it for Chrome already:
http://repo.cat-v.org/burning_chrome/hosaka/ it is fast, but obviously
still sucks, because the right solution is for the app to implement
the proper and sane shortcuts.

uriel

>>
>> uriel
>>
>> [1]: http://unix-kb.cat-v.org/
>>
>>
>> >
>> > Thanks :)
>> >
>> > --pancake
>> >
>> >
>>
>
>



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Kurt H Maier
On Thu, Sep 17, 2009 at 3:22 PM, pancake  wrote:
> Im sure that i can type faster than you in us or es kbd. The problem here is
> that the retarded X11 is taking the slash as a single key, making the
> modifier a separated key instead of taking t as a single keysim.

why don't you just set the keybinding to ctrl-shift-7 then and stop
whining about how x.org interprets keys based on the most common
keyboard layout in the world

-- 
# Kurt H Maier



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Moritz Wilhelmy
I think you should tell the GTK-people about this, not us.

Regards

On Sat, Oct 17, 2009 at 07:22:32PM +0200, Uriel wrote:
> How many fucking times I have to explain that: Unix shortcuts are
> *NOT* Emacs shortcuts? God fucking heavens.
> 
> uriel
> 
> 2009/10/17 Tadeusz Sośnierz :
> >> > Btw, does surf support the standard Unix text editing keybindings[1]?
> >>
> >> Its not about surf, this is a task for gtk textentry and so on. So unless 
> >> you write a ld.so modifying the signal handlers it will not be supported.
> >>
> >> It can be also be implemented in javascript, but it will be pretty slow.
> > Add the following to your .gtkrc-2.0:
> > gtk-key-theme-name = "Emacs"
> > Should work well.
> > Regards,
> > Ted
> >
> > --
> > ===
> > ()  ascii ribbon campaign - against html e-mail
> > /\  www.asciiribbon.org   - against proprietary attachments
> >
> >
> >
> 



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Uriel
I told them, they banned me from their irc server. They are beyond all hope.

uriel

On Sat, Oct 17, 2009 at 9:37 PM, Moritz Wilhelmy
 wrote:
> I think you should tell the GTK-people about this, not us.
>
> Regards
>
> On Sat, Oct 17, 2009 at 07:22:32PM +0200, Uriel wrote:
>> How many fucking times I have to explain that: Unix shortcuts are
>> *NOT* Emacs shortcuts? God fucking heavens.
>>
>> uriel
>>
>> 2009/10/17 Tadeusz Sośnierz :
>> >> > Btw, does surf support the standard Unix text editing keybindings[1]?
>> >>
>> >> Its not about surf, this is a task for gtk textentry and so on. So unless 
>> >> you write a ld.so modifying the signal handlers it will not be supported.
>> >>
>> >> It can be also be implemented in javascript, but it will be pretty slow.
>> > Add the following to your .gtkrc-2.0:
>> > gtk-key-theme-name = "Emacs"
>> > Should work well.
>> > Regards,
>> > Ted
>> >
>> > --
>> > ===
>> > ()  ascii ribbon campaign - against html e-mail
>> > /\  www.asciiribbon.org   - against proprietary attachments
>> >
>> >
>> >
>>
>
>



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Kris Maglione

On Sat, Oct 17, 2009 at 01:39:00PM +0200, Tadeusz Sośnierz wrote:

> Btw, does surf support the standard Unix text editing keybindings[1]?

Its not about surf, this is a task for gtk textentry and so on. So unless you 
write a ld.so modifying the signal handlers it will not be supported.

It can be also be implemented in javascript, but it will be pretty slow.


Add the following to your .gtkrc-2.0:
gtk-key-theme-name = "Emacs"
Should work well.


It works. It doesn't work well. I have to admit, it's gotten 
better: at least ^W finally deletes to the last non-word 
character rather than to the last space. ^U still clears the 
whole line, and as far as I can find, there's no way to 
configure it to do otherwise.


--
Kris Maglione

I cannot agree with those who rank modesty among the virtues.  To the
logician all things should be seen exactly as they are, and to
underestimate one's self is as much a departure from truth as to
exaggerate one's own powers.
--"Sherlock Holmes"




Re: [dev] surf - add missing keybinding

2009-10-17 Thread Kris Maglione

On Sat, Oct 17, 2009 at 01:39:00PM +0200, Tadeusz Sośnierz wrote:

Add the following to your .gtkrc-2.0:
gtk-key-theme-name = "Emacs"


Nevermind. It's possible now. See attached.

--
Kris Maglione

Never attribute to malice that which is adequately explained by
stupidity.
--Hanlon's razor

# GTK - The GIMP Toolkit
# Copyright (C) 2002 Owen Taylor
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.


# Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
# file for a list of people on the GTK+ Team.  See the ChangeLog
# files for a list of changes.  These files are distributed with
# GTK+ at ftp://ftp.gtk.org/pub/gtk/. 


#
# A keybinding set implementing emacs-like keybindings
#

#
# Bindings for GtkTextView and GtkEntry
#
binding "gtk-emacs-text-entry"
{
  bind "b" { "move-cursor" (logical-positions, -1, 0) }
  bind "b" { "move-cursor" (logical-positions, -1, 1) }
  bind "f" { "move-cursor" (logical-positions, 1, 0) }
  bind "f" { "move-cursor" (logical-positions, 1, 1) }

  bind "b" { "move-cursor" (words, -1, 0) }
  bind "b" { "move-cursor" (words, -1, 1) }
  bind "f" { "move-cursor" (words, 1, 0) }
  bind "f" { "move-cursor" (words, 1, 1) }

  bind "a" { "move-cursor" (paragraph-ends, -1, 0) }
  bind "a" { "move-cursor" (paragraph-ends, -1, 1) }
  bind "e" { "move-cursor" (paragraph-ends, 1, 0) }
  bind "e" { "move-cursor" (paragraph-ends, 1, 1) }

  bind "w" { "cut-clipboard" () }
  bind "y" { "paste-clipboard" () }

  bind "d" { "delete-from-cursor" (chars, 1) }
  bind "d" { "delete-from-cursor" (word-ends, 1) }
  bind "k" { "delete-from-cursor" (paragraph-ends, 1) }
  bind "backslash" { "delete-from-cursor" (whitespace, 1) }

  bind "space" { "delete-from-cursor" (whitespace, 1)
  "insert-at-cursor" (" ") }
  bind "KP_Space" { "delete-from-cursor" (whitespace, 1)
 "insert-at-cursor" (" ")  }

  #
  # Some non-Emacs keybindings people are attached to
  #
  bind "u" { "delete-from-cursor" (paragraph-ends, -1) }
  bind "h" { "delete-from-cursor" (chars, -1) }
  bind "w" { "delete-from-cursor" (word-ends, -1) }
}

#
# Bindings for GtkTextView
#
binding "gtk-emacs-text-view"
{
  bind "p" { "move-cursor" (display-lines, -1, 0) }
  bind "p" { "move-cursor" (display-lines, -1, 1) }
  bind "n" { "move-cursor" (display-lines, 1, 0) }
  bind "n" { "move-cursor" (display-lines, 1, 1) }

  bind "space" { "set-anchor" () }
  bind "KP_Space" { "set-anchor" () }
}

#
# Bindings for GtkTreeView
#
binding "gtk-emacs-tree-view"
{
  bind "s" { "start-interactive-search" () }
  bind "f" { "move-cursor" (logical-positions, 1) }
  bind "b" { "move-cursor" (logical-positions, -1) }
}

#
# Bindings for menus
#
binding "gtk-emacs-menu"
{
  bind "n" { "move-current" (next) }
  bind "p" { "move-current" (prev) }
  bind "f" { "move-current" (child) }
  bind "b" { "move-current" (parent) }
}

class "GtkEntry" binding "gtk-emacs-text-entry"
class "GtkTextView" binding "gtk-emacs-text-entry"
class "GtkTextView" binding "gtk-emacs-text-view"
class "GtkTreeView" binding "gtk-emacs-tree-view"
class "GtkMenuShell" binding "gtk-emacs-menu"


Re: [dev] surf - add missing keybinding

2009-10-17 Thread Tadeusz Sośnierz
On 17-10-2009 19:56:40, Kris Maglione wrote:
> On Sat, Oct 17, 2009 at 01:39:00PM +0200, Tadeusz Sośnierz wrote:
> >>> Btw, does surf support the standard Unix text editing keybindings[1]?
> >>
> >>Its not about surf, this is a task for gtk textentry and so on. So unless 
> >>you write a ld.so modifying the signal handlers it will not be supported.
> >>
> >>It can be also be implemented in javascript, but it will be pretty slow.
> >
> >Add the following to your .gtkrc-2.0:
> >gtk-key-theme-name = "Emacs"
> >Should work well.
> 
> It works. It doesn't work well. I have to admit, it's gotten better:
> at least ^W finally deletes to the last non-word character rather
> than to the last space. ^U still clears the whole line, and as far
> as I can find, there's no way to configure it to do otherwise.
> 
Well, It probably isn't ideal, but this is the best thing I know of,
that's why I posted it. I don't care whether it's called emacs, vi or
acme, as long as it works and does what I want. And it's not emacs,
for ^W and ^U works as Kris said, not this emacs region stuff.
Regards,
Ted



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Uriel
On Sun, Oct 18, 2009 at 2:02 AM, Kris Maglione  wrote:
> On Sat, Oct 17, 2009 at 01:39:00PM +0200, Tadeusz Sośnierz wrote:
>>
>> Add the following to your .gtkrc-2.0:
>> gtk-key-theme-name = "Emacs"
>
> Nevermind. It's possible now. See attached.

Hmmm... Just curious, but what exactly is possible now? I checked the
attached file, but the relevant lines seemed to be the same that I had
in: http://unix-kb.cat-v.org/GTK_2/

Is there anything else I'm missing? (I don't currently use any gtk
apps, but would like to know how to properly fix this in case in the
future I have the misfortune of being forced to use any such app.)

Thanks

uriel

>
> --
> Kris Maglione
>
> Never attribute to malice that which is adequately explained by
> stupidity.
>        --Hanlon's razor
>
>



Re: [dev] surf - add missing keybinding

2009-10-17 Thread Kris Maglione

On Sun, Oct 18, 2009 at 03:08:22AM +0200, Uriel wrote:

Hmmm... Just curious, but what exactly is possible now? I checked the
attached file, but the relevant lines seemed to be the same that I had
in: http://unix-kb.cat-v.org/GTK_2/

Is there anything else I'm missing? (I don't currently use any gtk
apps, but would like to know how to properly fix this in case in the
future I have the misfortune of being forced to use any such app.)


I actually just noticed your page after I posted that, when I 
went back and read the rest of the thread. That key binding 
didn't use to be possible the last time I tried it (two to three 
years ago, when the proper ^W key binding didn't work either).


But, I notice you don't have my nifty hack to make Xorg's compose 
behavior the same as Plan 9's, so I still come out ahead. :)


--
Kris Maglione

If the code and the comments disagree, then both are probably wrong.
--attributed to Norm Schryer