Re: [dev] Adding MRU support to dmenu

2014-01-21 Thread Eyal Erez
Any chance that this would get merged in (.gitignore notwithstanding)? On Mon, Dec 2, 2013 at 5:59 PM, Alexander Huemer wrote: > On Mon, Dec 02, 2013 at 09:40:24PM +0100, q...@c9x.me wrote: >> On Mon, Dec 02, 2013 at 10:07:17AM -0600, Chris Down wrote: >> > On 2013-12-01 18:19:22 -0500, Eyal Erez

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread Alexander Huemer
On Mon, Dec 02, 2013 at 09:40:24PM +0100, q...@c9x.me wrote: > On Mon, Dec 02, 2013 at 10:07:17AM -0600, Chris Down wrote: > > On 2013-12-01 18:19:22 -0500, Eyal Erez wrote: > > > create mode 100644 .gitignore > > > > A gitignore when there are no subdirectories? What do you want a > > gitignore

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread Carlos Torres
Hello, On Mon, Dec 02, 2013 at 09:40:24PM +0100, q...@c9x.me wrote: > On Mon, Dec 02, 2013 at 10:07:17AM -0600, Chris Down wrote: > > On 2013-12-01 18:19:22 -0500, Eyal Erez wrote: > > > create mode 100644 .gitignore > > > > A gitignore when there are no subdirectories? What do you want a > > gi

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread Markus Teich
q...@c9x.me wrote: > Would you mind elaborating? I use a git ignore in this kind of situation to > avoid having my `git status` full of garbage, are there any alternatives to > this? You can always use .git/info/exclude to ignore on a repository basis. So if you only have one clone of your projec

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread q
On Mon, Dec 02, 2013 at 10:07:17AM -0600, Chris Down wrote: > On 2013-12-01 18:19:22 -0500, Eyal Erez wrote: > > create mode 100644 .gitignore > > A gitignore when there are no subdirectories? What do you want a > gitignore for? Just don't do `git add .` (ever). Would you mind elaborating? I us

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread Markus Teich
Chris Down wrote: > They don't both work, `rev` reverses per-character, `tac` reverses per-line. indeed, you're right. --Markus

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread Chris Down
On 2013-12-01 18:19:22 -0500, Eyal Erez wrote: > create mode 100644 .gitignore A gitignore when there are no subdirectories? What do you want a gitignore for? Just don't do `git add .` (ever). Even if it was desirable, it should be provided as part of a separate patch. pgptGWApIW0Kj.pgp Descri

Re: [dev] Adding MRU support to dmenu

2013-12-02 Thread Chris Down
On 2013-12-02 01:38:34 +0100, Markus Teich wrote: > tac should work as well of course. They don't both work, `rev` reverses per-character, `tac` reverses per-line. pgpJSGfYOJjBs.pgp Description: PGP signature

Re: [dev] Adding MRU support to dmenu

2013-12-01 Thread Markus Teich
Eric Pruitt wrote: > Should that be "tac" instead of "rev" or am I missing something? Heyho, tac should work as well of course. --Markus

Re: [dev] Adding MRU support to dmenu

2013-12-01 Thread Eric Pruitt
On Mon, Dec 02, 2013 at 12:53:03AM +0100, Markus Teich wrote: > this should also be possible with some construct like this: > > rev > First reverse the historyfile (assuming you append to it), so most recently > used > entry is first, then remove duplicates and pass the list to dmenu. Should t

Re: [dev] Adding MRU support to dmenu

2013-12-01 Thread Markus Teich
Eyal Erez wrote: > I wanted to add support for MRU type sorting of commands. I've created a > patch which does this in a separate executable for backwards compatibility. Heyho, this should also be possible with some construct like this: rev

[dev] Adding MRU support to dmenu

2013-12-01 Thread Eyal Erez
Hi Folks, I love dmenu and have been using it for a while. I wanted to add support for MRU type sorting of commands. I've created a patch which does this in a separate executable for backwards compatibility. It's been a while since I've written C, so please let me know if I need to fix anything