From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Thu, 20 Sep 2012 08:54:38 +0000 From: Vincent Murphy Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [9fans] rc `{find} in plumber? Topicbox-Message-UUID: ba7585ce-ead7-11e9-9d60-3106f5b1d025 I am trying to build a plumb rule where $wdir is searched for a filename (a= fter a miss in $wdir), so I don't have to use find or xplor explicitly. Thi= s is similar to the 'Go to File' or 'Cmd-T' command from Textmate, commonly= ported to other editors. I was hoping to say something like files=3D`{find $wdir | g $data}, or ment= ions=3D`{g $data} for a miss on window body text, and then use $files in th= e action, e.g. if 1 result, load the file, if >1 results, show the list of = results in a new window. However it would appear that plumb variables are p= rocessed by bespoke code in src/cmd/plumb/rules.c and not by rc. I would al= so like to make these commands ignore files as specified in .hgignore and s= imilar. Is there a way to load rc output in to a plumb variable? Or is there a bett= er approach to achieve this?