Enable filename tab completion everywhere?

7 ビュー (過去 30 日間)
neutral_bias
neutral_bias 2016 年 8 月 5 日
コメント済み: Trenton 2016 年 8 月 26 日
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 件のコメント
neutral_bias
neutral_bias 2016 年 8 月 7 日
編集済み: neutral_bias 2016 年 8 月 7 日
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 2016 年 8 月 26 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by