0

This is a continuation of python double tabbing in cli to show compatible files only. May be the question was not clear at the previous question.

The point is, in linux terminal emulator, with a pdf viewer, say evince, evince [tab] [tab] shows only pdf files as command line options. Similarly, an image viewer only shows image files. Can this be done from a python code? Or it is some property of the terminal (I guess it is about the viewer and mimetype).

BaRud
  • 3,055
  • 7
  • 41
  • 89
  • If you're running bash, one way to achieve this (I suppose) is to bind a script/program/whatever to `TAB` in ~/.inputrc, e.g. I have "\C-v": "xclip -o^M" (^M is a literal Ctrl-M, i.e. Carriage Return). –  Jun 04 '21 at 10:14
  • Expect it to be slow. –  Jun 04 '21 at 10:15

0 Answers0