+(1) +(1) +(1) +(3) +(1) +(1) +(1) +(1) +(4) +(3) +(3) -(3) +(1) +(1)
Vim and Latex-Suite : é and â not broken 14/06/09 04:53
imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine
let g:Tex_AdvancedMath = 0
Count total pages of pdf files in a directory 05/12/08 17:37
declare -i C=0
for i in *.pdf
  do pdftops $i toto.ps
  C=$C+$(grep -c showpage toto.ps)
  echo $C
done;
“Clever” completion 18/05/08 02:36

I was thinking..

It could be cool to be able, in Bash shell, to toggle a kind of “clever” completion, with features like that :

  1. completion before and after a command : pdf [TAB] => xpdf
  2. completion based on functionalities : jabber [TAB] => psi | gajim | etc...
  3. completion based on the following file’s type (from extension or MIME-type) : [TAB] toto.pdf => xpdf toto.pdf

Maybe completion is not really good for all of this.

  • The second is kind of implemented in Debian with their alternatives !
  • The third could be a little script (name ie. “open”) which will try to open the file with a software based on its type, with perhaps a menu for the user to choose his preferred one, why not with setting of preferences !
Update:
  • first one : dmenu -i does it ! I was using dmenu when first thinking about all that, and now I’ve RTFM