Re: [dev] coreutils / moreutils - DC a directory counter

2013-07-17 Thread p37sitdu
dc - desk calculator http://man.cat-v.org/plan_9/1/dc http://man.cat-v.org/unix-1st/1/dc

Re: [dev] suckless dotfiles approach

2013-06-09 Thread p37sitdu
On Sat, Jun 08, 2013 at 12:28:14AM +0200, Markus Teich wrote: > Hey guys, > > I feel this three popular approaches have drawbacks: > * When creating the repository in $HOME i have to carefully select > which files to add. > * When copying files from the working directory to $HOME i have to > sync

[dev] [st] selection bugfix

2013-05-26 Thread p37sitdu
The fix is for st HEAD. First of all, how to reproduce: 1. Run "man man" or just "less" with some scrollable file. 2. Select some part of text by pressing LMB somewhere and moving cursor up. 3. Scroll with "j" and "k". The result is: http://postimg.org/image/ec04tz7u5/ The problem is that if you

Re: [dev] [st] pasting to gvim sucks

2013-04-13 Thread p37sitdu
On Sat, Apr 13, 2013 at 08:53:08AM +0200, Christoph Lohmann wrote: > Greetings. > > On Sat, 13 Apr 2013 08:53:08 +0200 Alexander Sedov > wrote: > > > Maybe pasting to st should be fixed too, so when newlines are pasted, > > > they are translated to ^M. But '\n' should be copied, otherwise pasti

Re: [dev] [st] pasting to gvim sucks

2013-04-11 Thread p37sitdu
On Thu, Apr 11, 2013 at 05:00:00PM +0100, Nick wrote: > On Thu, Apr 11, 2013 at 05:25:46PM +0200, Martti Kühne wrote: > > On Thu, Apr 11, 2013 at 5:22 PM, Carlos Torres wrote: > > > this is a funny patch. it must have been about 1 to 2 months ago that > > > there was another discussion about past

[dev] [st] pasting to gvim sucks

2013-04-11 Thread p37sitdu
This patch makes behaviour consistent with xterm and comments. diff --git a/st.c b/st.c index 93058b9..90c102e 100644 --- a/st.c +++ b/st.c @@ -790,7 +790,7 @@ selcopy(void) { } /* \n at the end of every selected line except for the last one */

Re: [dev] [surf] Follow a link without mouse?

2013-01-31 Thread p37sitdu
You can look at Arora. [1] They have implemented "Access keys" without javascript and Arora is based on webkit. Maybe it is not hard to port or at least it may be useful to read their code. It is GPLed, however. [1] https://code.google.com/p/arora/

Re: [dev] [st] zsh and del/pos1 key

2013-01-06 Thread p37sitdu
This patch "fixes" it for me. Don't know how to fix it correctly yet. 141,142c141,142 < { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1,0,0}, < { XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1,0,0}, --- > /*{ XK_KP_Delete, XK_ANY_MOD, "\033[P",

Re: [dev] [st] zsh and del/pos1 key

2013-01-06 Thread p37sitdu
On Sun, Jan 06, 2013 at 04:39:57PM +0100, ilf wrote: > For me, in st (current git) the Pos1 and Del keys don't work in an > interactive zsh. End and Backspace work though. > > In bash, Pos1 works, but Del doesn't. > > In vim, everything works. > > Can anyone reproduce this? Any hint on how to de

Re: [dev] [st] zsh and del/pos1 key

2013-01-06 Thread p37sitdu
On Sun, Jan 06, 2013 at 04:39:57PM +0100, ilf wrote: > For me, in st (current git) the Pos1 and Del keys don't work in an > interactive zsh. End and Backspace work though. > > In bash, Pos1 works, but Del doesn't. > > In vim, everything works. > > Can anyone reproduce this? Any hint on how to de

Re: [dev] [st] font fallback

2012-12-29 Thread p37sitdu
On Sat, Dec 29, 2012 at 04:20:11PM +0800, Kai Hendry wrote: > So I just compared a little before the font code change and I couldn't > really see a difference tbh. You can see the difference when you copy and paste characters that are not in your font. For example: "⊥" is not present in Terminus.

Re: [dev] [dwmstatus] smprintf rewritten (try)

2012-12-23 Thread p37sitdu
On Sun, Dec 23, 2012 at 09:51:27PM +0100, Thuban wrote: > Hello, > I tried to rewrite smprintf to use asprintf, following your advices. > Can you check if there is anything wrong? > I have some doubt about the necessaries free(). Is it alright if free() > is use outside the function? > > The code

[dev] [st] [patch] alternate screen selection bugfix

2012-12-10 Thread p37sitdu
To trace the glitch, I added fprintf(stderr, "%d %d\n", sel.alt, !!IS_SET(MODE_ALTSCREEN)); into the draw() function. What happens: 1. Start st. Type something: both sel.alt and IS_SET(MODE_ALTSCREEN) are 0. 2. Run "man man". MODE_ALTSCREEN is set to 1. 3. Press LMB. sel.alt is 0, MODE_ALTSCR

Re: [dev] [st] Terminus font

2012-11-25 Thread p37sitdu
On Sun, Nov 25, 2012 at 10:37:18PM +0100, Christoph Lohmann wrote: > Greetings. > > On Sun, 25 Nov 2012 22:37:18 +0100 Manolo Martínez > wrote: > > On 11/25/12 at 03:48pm, Christoph Lohmann wrote: > > > But really, to make it easier, something like xfontsel(1), but without > > > any KDE or Gno

Re: [dev] [st] Terminus font

2012-11-23 Thread p37sitdu
On Fri, Nov 23, 2012 at 02:27:28PM -0500, Carlos Torres wrote: > That sounds like a fontconfig question, you can probably set some options > specific to terminus in your .fontconfig file Really, "Terminus:file=ter-x16n.pcf.gz" works.

[dev] [st] Terminus font

2012-11-23 Thread p37sitdu
I had problems with font set to "Terminus:pixelsize=16:antialias=false:autohint=false". Line drawing characters and all non-english characters were replaced with squares. There were some messages in this mailing list with suggestion to use Liberation Mono [1][2]. Liberation Mono looks ugly (for m

Re: [dev] Troff for typsetting e-mails

2012-10-28 Thread p37sitdu
On Sun, Oct 28, 2012 at 01:21:40PM +0100, hiro wrote: > typesetting? raw text can be typeset just fine with a keyboard. not > sure what you're really up to. > It is suckless answer to HTML email.