Enable filename tab completion everywhere?

7 visualizzazioni (ultimi 30 giorni)
neutral_bias
neutral_bias il 5 Ago 2016
Commentato: Trenton il 26 Ago 2016
Hi,
is there a way of enabling filename tab completion everywhere (as soon as I start entering a string), not just when filling in certain function's arguments? In most other programmers' editors and IDEs (vim, emacs, IPython, Eclipse, ...) this is a standard feature, and saves a lot of time. In Matlab, it only seems to be available for select functions, which is a pain.
Best, Tobias
  4 Commenti
neutral_bias
neutral_bias il 7 Ago 2016
Modificato: neutral_bias il 7 Ago 2016
So, to make this more clear, what I'd like to have is that if I define a variable to a string constant (or give a string constant as a function argument), matlab tab completion should offer me the file names that match what I've typed so far. So if I type this, for example:
infilename = '/somedir/a<Tab>
... then I'd like Matlab to open a popup menu and show me all the files in /somedir that start with "a".
This behaviour already exists in Matlab, but only for certain arguments to certain built-in functions, like the first argument to load(). If you do this:
load('/somedir/a<Tab>
... you get the popup that I described above (obviously, if you're on windows, replace "/somedir" with "c:\somedir"). I'd just like to get it whenever I type a string constant, not just for certain arguments to certain functions.
Thanks,
'bias
Trenton
Trenton il 26 Ago 2016
This used to be possible, as published at undocumentedmatlab. However, I can't find the file they reference TC.xml in 2016a. I also didn't see anything similar after a cursory grep, suggested by stackOverflow. I too would like to be able to this, but I think they have intentionally made it difficult.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by