jed-users mailing list

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

Re: [Jed-users-l] Compile and run


2010/8/23 Gabriel Hurley <gabriel.hurley@xxxxxxxxx>:
> In Gedit there is a handy script that will compile and execute the
> code that you happen to have open at the time. The script looks like
> this:
>
> #!/bin/bash
> gcc $GEDIT_CURRENT_DOCUMENT_NAME -o ${GEDIT_CURRENT_DOCUMENT_NAME%.*}
> DESU=`echo ${GEDIT_CURRENT_DOCUMENT_NAME}|cut -d "." -f 1`
> xterm -hold -e ./$DESU --working-directory=$GEDIT_CURRENT_DOCUMENT_DIR
>
>
> Is there something similar that I can use for Jed? Currently what I do
> is open the Shell Command dialogue and type something like...
>
> gcc filename.c -o filename && ./filename
>
> ...but that gets annoying after a while. Is there any way to do this
> automatically?
>
>

You can open a shell and print his command output on a buffer with
Esc+! ( Here's a list of jed's keybind:
http://www.fi.infn.it/info/jed/jed_7.html)
Maybe you can readapted the script to do it more easy handle on jed.

Best regards,

-- 
Facundo Andrés Bianco (Vando.)
GNUPG ID: 0x89C1B42F
omb: identi.ca/vando
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l

[2010 date index] [2010 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]