jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: how to load a list of files into jed at startup


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]