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 alexander.hue...@xx.vu 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

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-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

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 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 use a

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 project,

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 gitignore

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 for? Just

[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

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 historyfile | awk '!x[$0]++' | dmenu First reverse the

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 historyfile | awk '!x[$0]++' | dmenu First reverse the historyfile (assuming you append to it), so most recently used entry is first, then remove duplicates and

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