- Subject: Re: how to load a list of files into jed at startup
 
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
 
- Date: Wed, 19 Oct 2005 11:53:32 -0400
 
Dave Kuhlman <dkuhlman@xxxxxxxxxxxxxxx> wrote:
>    $ find * \( -iname '*.py' -o -iname '*.pt' \) | xargs jed
I use something like:
  find . -name '*.py' -o -name '*.pt' -print | jed --stdin-files
where my .jedrc file contains:
define stdin_files ()
{
   variable file;
   
   !if (bufferp ("*stdin*"))
     return;
   
   setbuf ("*stdin*");
   bob ();
   
   do
     {
	file = line_as_string ();
	if (strlen (file))
	  {
	     () = find_file (file);
	     setbuf ("*stdin*");
	  }
     }
   while (down_1 ());
}
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
  [2005 date index]
  [2005 thread index]
  
  [Thread Prev] [Thread Next]
      
  [Date Prev] [Date Next]