[vitunes] Multiple Toggle-List Support Added: Testing & Comments welcome

  • From: Ryan Flannery <ryan.flannery@xxxxxxxxx>
  • To: vitunes@xxxxxxxxxxxxx
  • Date: Mon, 14 Feb 2011 14:09:18 -0500

Hi List,

I just committed and pushed out a patch that adds support for multiple
toggle lists.

When creating a toggle list, one must now specify a register (from
[a-zA-Z]), which the toggle list will be referred to by later.

   :toggle <register> <command1> / <command2> / ...

E.g. to quickly change your display:
   :toggle d display <wide-format> / display <medium-format> / display
<narrow-format>

That puts a list of three commands into the toggle list in register 'd'.

After that, one can 'toggle through' that list, executing each command
in turn with 'td'.  You can move backwards through the list with 'Td'.
 Numeric prefixes are also supported.  That is, 2td would skip through
2 of the commands in the d toggle-list.

The ability to quickly change display's and sorts is, probably, the
handiest use of toggle lists.

Anyway, testing and comments are welcome.  Much thanks to Kilian for
the initial idea and implementation.

-Ryan

Other related posts:

  • » [vitunes] Multiple Toggle-List Support Added: Testing & Comments welcome - Ryan Flannery