[dev] [dmenu] smaller dmenu_path.c

2010-08-21 Thread Connor Lane Smith
Hey all, The dmenu_path.c in patches seemed a bit long and complex, so I wrote my own. It's 100 lines, versus the other's 376. It might be a couple of milliseconds slower, it's difficult to tell -- but in my opinion its simplicity makes up for that. Source attached. cls dmenu_path.c

Re: [dev] Re: [dev] [dev] Usage, -h, --help, help, syn opsis, …

2010-08-21 Thread pancake
80 or 78? :) Sent from my iPod On Aug 21, 2010, at 2:59 AM, Noah Birnel nbir...@gmail.com wrote: On Thu, Aug 19, 2010 at 11:06:40AM -0700, Suraj Kurapati wrote: On Tue, Aug 17, 2010 at 7:54 PM, Suraj Kurapati sun...@gmail.com wrote: Alternatively, in simple shell scripts (for which writing

Re: [dev] [surf] Shortcuts for horizontal scrolling

2010-08-21 Thread Alex Puterbaugh
Heh. Looks like I forgot to attach it. How's it look now? There's also some changes to the default config file, but they are of course just suggested. On Sat, Aug 21, 2010 at 07:35:33PM +0100, Rob wrote: On 21 August 2010 19:32, Alex Puterbaugh puterbau...@gmail.com wrote: Hey all, I've

[dev] Re: [dev] Re: [dev] Re: [dev] [dev] Usage, -h, --hel p, help, synopsis, …

2010-08-21 Thread Suraj Kurapati
On Sat, Aug 21, 2010 at 4:22 AM, yy yiyu@gmail.com wrote: 2010/8/19 Suraj Kurapati sun...@gmail.com: On Tue, Aug 17, 2010 at 7:54 PM, Suraj Kurapati sun...@gmail.com wrote: #!/bin/sh # your program description usage documentation here # nicely formatted and beautified to fit 80 columns

Re: [dev] [surf] Shortcuts for horizontal scrolling

2010-08-21 Thread Alex Puterbaugh
Actually, that patch breaks the navigate() and clipboard() functions. There's an updated one attached. On 21 August 2010 19:32, Alex Puterbaugh puterbau...@gmail.com wrote: Hey all, I've made a small patch that allows you to bind keys for horizontal scrolling. This approach (which imho is

[dev] Re: [dev] Re: [dev] [dev] Usage, -h, --help, help, s ynopsis, …

2010-08-21 Thread Suraj Kurapati
On Sat, Aug 21, 2010 at 2:12 AM, pancake panc...@youterm.com wrote: 80 or 78? :) Good point. I personally use 78 because, if you follow the Python suggestion of 79 characters and reserve 1 more character for +/-/ indicators in diff(1) output, then your code will be readable in terminals,