Heyho
On Fri, Dec 11, 2015 at 3:41 PM, Xarchus wrote:
> On Wed, Dec 09, 2015 at 11:16:07AM +0100, Silvan Jegen wrote:
>> On Wed, Dec 9, 2015 at 11:12 AM, Roberto E. Vargas Caballero
>> wrote:
>> > On Wed, Dec 09, 2015 at 10:31:09AM +0100, Silvan Jegen wrote:
>&g
On Wed, Dec 9, 2015 at 11:12 AM, Roberto E. Vargas Caballero
wrote:
> On Wed, Dec 09, 2015 at 10:31:09AM +0100, Silvan Jegen wrote:
>> I realized that I am not dealing with the case that the history file
>> does not exist already. I added a simple check for that (although I
>
On Tue, Dec 8, 2015 at 8:34 PM, Silvan Jegen wrote:
> Heyhey
>
> On Thu, Dec 03, 2015 at 02:57:52AM -0800, Xarchus wrote:
>> [...]
>>
>> - improved the history/cache parsing/de-duplication awk one-liner in
>> dmenu_path; the former 'NR==FNR' test was
Heyhey
On Thu, Dec 03, 2015 at 02:57:52AM -0800, Xarchus wrote:
> [...]
>
> - improved the history/cache parsing/de-duplication awk one-liner in
> dmenu_path; the former 'NR==FNR' test was not enough: in case of a not
> supplied or empty history file it attempted to remove a count followed by a
Hi
On Thu, Dec 3, 2015 at 11:57 AM, Xarchus wrote:
> And a couple of fixes for the 'history' patch:
>
> - fixed the code in the BEGIN block of the inline awk program in dmenu_run;
> if no history file was supplied the awk script was just ignoring any
> output from dmenu
>
> - improved the histo
On Tue, Dec 1, 2015 at 8:04 PM, Silvan Jegen wrote:
> Heyho!
>
> On Tue, Dec 01, 2015 at 05:51:59AM -0800, Xarchus wrote:
>>
>> This updhist awk script replacement will work with multiselect (multiple
>> inputs will simply increment their count or added as new). Thi
Heyho!
On Tue, Dec 01, 2015 at 05:51:59AM -0800, Xarchus wrote:
> On Mon, Nov 30, 2015 at 03:28:42PM +0100, Silvan Jegen wrote:
> > Heyho!
> >
> > On Sat, Nov 28, 2015 at 11:25 PM, Hiltjo Posthuma
> > wrote:
> > >
> > > This can be implemented in
Heyho!
On Sat, Nov 28, 2015 at 11:25 PM, Hiltjo Posthuma
wrote:
> On Fri, Nov 27, 2015 at 7:38 PM, Silvan Jegen wrote:
>> Heyhey
>>
>> I kept thinking about a more general way to implement history
>> functionality for dmenu and this is what I came up with.
>&
the input file itself. Suggestions
are welcome!
Silvan Jegen (4):
Use sort to generate the command list
Pass a file path to dmenu_path and run updhist
Add updhist to the Makefile
Add the updhist program
Makefile | 12 ++---
dmenu_path | 12 +++--
dmenu_run | 5 +++-
updhi
The history file is read by sort and updhist updates the counts in the
history file.
---
dmenu_run | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dmenu_run b/dmenu_run
index 834ede5..4858b0d 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -1,2 +1,5 @@
#!/bin/sh
-dmenu_path | dm
---
Makefile | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index a7cd04f..0071db0 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,10 @@
include config.mk
-SRC = drw.c dmenu.c stest.c util.c
+SRC = drw.c dmenu.c stest.c util.c updhist.c
We use sort to generate the list of commands ordered by their use count.
---
dmenu_path | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
mode change 100644 => 100755 dmenu_path
diff --git a/dmenu_path b/dmenu_path
old mode 100644
new mode 100755
index 338bac4..b6f5a9b
--- a/dm
This program reads a command (or any character sequence) from stdin and
takes the path to the history file as an argument. The history file should
be empty or contain a list of commands each of which should be followed
by a tab character and a usage count. An example for a line in such a
history fi
On Thu, Jul 30, 2015 at 06:51:21PM +0200, Marc André Tanner wrote:
> On Wed, Jul 29, 2015 at 08:52:07PM +0200, Silvan Jegen wrote:
> > This is the quick-and-dirty way to implement a feature I miss from Vim.
>
> Thanks. Yes the count/repetition code needs an overhaul. I'm n
---
This is the quick-and-dirty way to implement a feature I miss from Vim.
I realize that I added some newlines for readability (subjective, I know)
but I can send a new version of the patch without those if you don't
want them.
vis.c | 13 ++---
1 file changed, 10 insertions(+), 3 del
On Thu, Feb 6, 2014 at 6:50 AM, wrote:
> commit 127dc366efeda9afc6086be67b60979af1d71205
> Author: Christoph Lohmann <2...@r-36.net>
> Date: Thu Feb 6 06:47:22 2014 +0100
>
> Removing a memory leak when u wasn't freed.
>
> diff --git a/surf.c b/surf.c
> index c598404..1ec4c62 100644
> --- a
101 - 116 of 116 matches
Mail list logo