Re: [Musicpd-dev-team] ncmpc updates

2009-03-13 Thread Max Kellermann
On 2009/03/13 04:59, Jeffrey Middleton jefr...@gmail.com wrote:
 Ready for pull:
 
  git pull git://git.musicpd.org/jefromi/ncmpc.git master
 
 Commit summaries:
 - Improved lyrics plugin handling:
   - try plugins in order of filename (previously by inode or whatever
 g_dir_read_name reads by)
   - prefix names with 01, 02, 03 to make the sorting obvious
   - correctly check if lyricswiki lyrics were found
 - Center the cursor on a second Ctrl-L
 - Switch save lyrics to CMD_SAVE_PLAYLIST (default S, more intuitive).
 Hopefully changing keys for a screen that's still default disabled is ok.
 - Turn off visual selection in keydef screen (no use currently)
 - Added option to control how long status messages are displayed (I get
 fidgety waiting three seconds)

All of them merged!  By the way, git helps you with writing this
summary: try git shortlog origin..

 I've also been thinking of having a look at mpc's options someday - maybe
 adding -q to mean fully quiet (e.g. mpc ls | mpc add produces a ton of
 output), implementing the --host and --port options...  SInce mpc's
 option-handling isn't really set up well for short options yet this will
 require some changes.  I could start from scratch with glib's fancy option
 functions, or since mpc doesn't have a heavy dependence on glib, I could
 bring over code from ncmpc (with credit of course) - would one of these be
 preferred over the other?

First: libmpdclient and mpc should not have the heavy GLib dependency.
People on embedded machines will hate us if we add GLib there.  I'm
used to the comfort of having GLib, but these two projects should be
based on raw C99/POSIX.

In general, there's a rule for Unix command line tools: if there's
nothing to say, don't say anything at all.  If adding succeeds, don't
say a word (that's the standard, the expected result) - only if it
fails.  We can always have --verbose for those who prefer a
talkative program.

I'd say: use getopt() (and getopt_long() if available) to parse
command line options.

I have created a mpc repository for you.

Max

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team


[Musicpd-dev-team] ncmpc updates

2009-03-12 Thread Jeffrey Middleton
Ready for pull:

 git pull git://git.musicpd.org/jefromi/ncmpc.git master

Commit summaries:
- Improved lyrics plugin handling:
  - try plugins in order of filename (previously by inode or whatever
g_dir_read_name reads by)
  - prefix names with 01, 02, 03 to make the sorting obvious
  - correctly check if lyricswiki lyrics were found
- Center the cursor on a second Ctrl-L
- Switch save lyrics to CMD_SAVE_PLAYLIST (default S, more intuitive).
Hopefully changing keys for a screen that's still default disabled is ok.
- Turn off visual selection in keydef screen (no use currently)
- Added option to control how long status messages are displayed (I get
fidgety waiting three seconds)



I've also been thinking of having a look at mpc's options someday - maybe
adding -q to mean fully quiet (e.g. mpc ls | mpc add produces a ton of
output), implementing the --host and --port options...  SInce mpc's
option-handling isn't really set up well for short options yet this will
require some changes.  I could start from scratch with glib's fancy option
functions, or since mpc doesn't have a heavy dependence on glib, I could
bring over code from ncmpc (with credit of course) - would one of these be
preferred over the other?

Jeffrey
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team