Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-11 Thread Dimitris Papastamos
On Mon, May 12, 2014 at 12:34:36AM +0200, FRIGN wrote: > Hello, > > previously, we allocated one regex_t for each pattern found. > This gets pretty nasty once the tree of patterns grows. > Reusing one regex_t and regfreeing it after each use inside grep() > implies just one simultaneous element in

[dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-11 Thread FRIGN
Hello, previously, we allocated one regex_t for each pattern found. This gets pretty nasty once the tree of patterns grows. Reusing one regex_t and regfreeing it after each use inside grep() implies just one simultaneous element in memory and a drastic decrease in memory-consumption. Please let m

Re: [dev] [sbase] [PATCH] Remove unnecessary enum [NVM]

2014-05-11 Thread FRIGN
On Sun, 11 May 2014 23:20:26 +0200 FRIGN wrote: > reading the grep-code in sbase kind of left me wondering why this enum > was implemented. In the contexts it's been used it doesn't make much > sense and obfuscates the code. I should've read the manual[0] a bit more attentively. For the record:

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-11 Thread FRIGN
On Sun, 11 May 2014 13:34:11 +0200 Hiltjo Posthuma wrote: > The attached patch allows to force override mouse selection copy using > the ShiftKey, similar to xterm. For example in tmux with "mode-mouse > on". Nice idea! It sure will be useful to have a way to override this and doesn't add much c

[dev] [sbase] [PATCH] Remove unnecessary enum

2014-05-11 Thread FRIGN
Hello, reading the grep-code in sbase kind of left me wondering why this enum was implemented. In the contexts it's been used it doesn't make much sense and obfuscates the code. Cheers FRIGN -- FRIGN >From 48912a55e9122fd221d5f9c800b679ceaa622f53 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Su

Re: [dev] [ANNOUNCE] dlauncher - dmenu based launcher

2014-05-11 Thread Xinhao Yuan
Thanks for advice! I've fixed the crash bug and ssh_config parsing issue you mentioned. I didn't test much on -l mode, so there may be bugs hidden. For `dir' plugin, the current way to enter a directory is to append '/' at the end of the directory name. For example, input `dir_` you will get compl

[dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-11 Thread Hiltjo Posthuma
Hi, The attached patch allows to force override mouse selection copy using the ShiftKey, similar to xterm. For example in tmux with "mode-mouse on". Patch applies cleanly against the latest (as of now) git commit bdb850a16a6d7a2d12b2bd5500a3b7d70290a74a Patch also downloadable at: http://www.cod

Re: [dev] [sbase] [patch] LICENSE - switch to real name

2014-05-11 Thread Dimitris Papastamos
On Sun, May 11, 2014 at 11:00:01AM +0200, FRIGN wrote: > Hello, > > I decided to state my clear name in the licenses of the programs I > submit to. > Thus, to complete the change, I send in this patch to change the > sbase-license accordingly. Applied, thanks.

[dev] [sbase] [patch] LICENSE - switch to real name

2014-05-11 Thread FRIGN
Hello, I decided to state my clear name in the licenses of the programs I submit to. Thus, to complete the change, I send in this patch to change the sbase-license accordingly. Cheers FRIGN -- FRIGN >From 9146781ff0ac4ceb421281ab6afda6f246c4d031 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Sun

Re: [dev] [ANNOUNCE] dlauncher - dmenu based launcher

2014-05-11 Thread Ciprian Dorin Craciun
On Sun, May 11, 2014 at 4:29 AM, Xinhao Yuan wrote: > I would like to announce dlauncher, a dmenu based launcher I wrote to > replace synapse(https://launchpad.net/synapse-project) which is no > longer in development. dlauncher reuses the minimalist dmenu UI and > supports plugins that provide dyn