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
Description
80 or 78? :)
Sent from my iPod
On Aug 21, 2010, at 2:59 AM, Noah Birnel 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
wrote:
Alternatively, in simple shell scripts (for which writing a manpage
would be overkill), I s
2010/8/19 Suraj Kurapati :
> On Tue, Aug 17, 2010 at 7:54 PM, Suraj Kurapati wrote:
>> On Tue, Aug 17, 2010 at 8:40 AM, Alexander Teinum wrote:
>>> What is the most concise way of outputting a usage and help text?
>>
>> For my programs, the --help option simply displays their manpage. :-)
>
> Alt
Hey all,
I've made a small patch that allows you to bind keys for
horizontal scrolling.
This approach (which imho is the least of many evils) requires
the Arg union to be a struct, to allow the scroll() function
to use both .b and .i as arguments.
I think that horizontal scrolling via the keyboa
On 21 August 2010 19:32, Alex Puterbaugh wrote:
> Hey all,
>
> I've made a small patch that allows you to bind keys for
> horizontal scrolling.
>
> This approach (which imho is the least of many evils) requires
> the Arg union to be a struct, to allow the scroll() function
> to use both .b and .i
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 wrote:
> > Hey all,
> >
> > I've made a small
On Sat, Aug 21, 2010 at 4:22 AM, yy wrote:
> 2010/8/19 Suraj Kurapati :
>> On Tue, Aug 17, 2010 at 7:54 PM, Suraj Kurapati wrote:
>> #!/bin/sh
>> # your program description & usage documentation here
>> # nicely formatted and beautified to fit 80 columns
>> # NOTE: the blank line below is the end
Actually, that patch breaks the navigate() and clipboard()
functions.
There's an updated one attached.
> On 21 August 2010 19:32, Alex Puterbaugh wrote:
> Hey all,
>
> I've made a small patch that allows you to bind keys for
> horizontal scrolling.
>
> This approach (which imho is the least of m
2010/8/21 Suraj Kurapati :
> I like to put documentation at the head of a file because that's only
> part anyone will read before deciding if it's worth spending their
> time to delve into the rest of the shell script. Also, I don't like
> messing up my program's indentation because I have to emit
2010/8/21 yy :
> #!/bin/sh
>
> USAGE="\
> Usage: $0 -flags args
> Explain the options here.
> You even can even use use shell variables!
> "
>
> if [ $# -lt 1]; then
> echo -n "$USAGE" 1>&2
> exit 1
> fi
>
> Is this really so ugly?
No, it seems decent enough. Good idea.
On Sat, Aug 21, 2010 at 2:12 AM, pancake 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, editors, and also in pat
11 matches
Mail list logo