About using and customizing the front-end's auto-completion feature

learn more… | top users | synonyms

55
votes
2answers
2k views

Is it possible to improve Mathematica's auto-completion feature?

In this answer Brett Champion describes how one can intercept and modify the suggestions used for auto-completion. Question: Is it possible to modify the suggestion for the automatic auto-completion ...
25
votes
2answers
799 views

Template completion

In version 8, if one evaluates test::usage="test[x,y]"; then types test, then shift-cmd-k (or shift-ctrl-k), a template ...
21
votes
1answer
299 views

File-name completion for custom functions

Mathematica 10 has introduces file name completion. It works only with certain built-in functions such as Import, SetDirectory, ...
16
votes
4answers
615 views

Autocomplete InputField

Is there a way to define a InputField that displays a list of options as you type? More specifically I'm looking for an ...
16
votes
1answer
498 views

Segmentation fault on auto-complete

My front-end freezes as soon as I type more than two letters in a notebook. I think the error occurs, when the auto-complete feature kicks in. If Mathematica was started from a terminal, the following ...
16
votes
1answer
229 views

Prompt a set of possible options

Recent versions of Mathematica dynamically prompt a list of possible options. For example, when typing Plot[x, {x,0,1}, PlotStyle-> After typing the arrow, ...
15
votes
2answers
800 views

Command Completion

Note: As of version 9, this functionality is available and works out of the box. I've a few questions about Command Completion in Mathematica. I recently discovered this feature, and it's really ...
15
votes
2answers
396 views

Auto-completion doesn't work as my expectation in version 9.0

When I input the following line in version 8, and press Ctrl+K after Re, I can get a drop-down auto-completion list including ...
12
votes
3answers
614 views

How to make the suggestion box appear?

When you type a function in Matlab, quickly a suggestion box comes up showing functions similar to the one you're typing. I thought that Mathematica didn't have this but one day, I typed half of a ...
11
votes
2answers
455 views

How can I overload autocompletion to work with full contexts?

I would like for the autocomplete feature to search through contexts, for example if I have a symbol named A`B`C`MyFunction, when I type A` and press "cmd + shift + k" it will complete it. Edit To ...
11
votes
1answer
182 views

Functions returns Command Completion Output

Is there a function that returns the output as if you invoked Command Completion. To help clarify I am looking for a function that returns the Cell Data as if you invoked ...
10
votes
0answers
165 views

How to add symbols to autocompletion list

There are some built-in Mathematica symbols that I use quite frequently but are not included in the autocompletion list in the front end. Examples are Analytic and ...
10
votes
0answers
81 views

Autocomplete is too greedy with the mouse

I have a frustrating user experience problem in Linux; a common occurrence when using the notebook might go like: I have, for some reason, used the mouse (e.g. to place the cursor) and then move the ...
10
votes
0answers
158 views

Autocomplete of non-global functions

In Mathematica 9 and 10 they added autocompletion. Out of the box this works great, but when I set the CellContext to "Notebook" ...
9
votes
1answer
142 views

Is it possible to make v9 ignore case when completing names?

In v8, I could type, say, fulls or texf to get FullSimplify or ...
9
votes
0answers
126 views

Esc-esc for special characters and autocomplete in Mathematica 9 [duplicate]

I recently upgraded to Mathematica 9 and have noticed a slightly annoying behavior that I was looking to remedy. In the past I would type special characters, e.g. ...
8
votes
0answers
85 views

How can autocomplete entries be added for DownValues and Properties?

I'd like to assign DownValues to a symbol like this x["firstvalue"] = 1; x["secondvalue"] = 2; And then have the ...
7
votes
1answer
122 views

Can I put Association brackets <| … |> in an autocompletion template?

I have a function f which takes as one of its arguments an Association object, and I would like to produce a nice usage message ...
7
votes
1answer
170 views

Remove variable from autocomplete - version 10 issue?

I've got a program that's fairly long. Occasionally I ClearAll some lists that I created. That works fine, but those lists continue to show up in the autocomplete. Is there anyway to remove them ...
7
votes
0answers
75 views

Strange behavior of autocomplete for ColorData [closed]

I'm seeing very weird behavior when autocompleting: Not sure if this is a bug. Is it? (I have OSX v10.2)
6
votes
1answer
93 views

Completion in terminal?

I know that it is possible to run Mathematica in Terminal. But I didn't find a way to get completion work in Terminal. I mean completion by ...
6
votes
0answers
97 views

Mathematica 9 Autocomplete Pop-up issue

I've just installed Mathematica 9.0.1 Student Edition on my Laptop and my Home PC. On my Laptop, it works just fine. But on my Home PC I get this weird issue of the pop-up command autocomplete window ...
5
votes
1answer
66 views

Prevent autocompletion for symbols in contexts other than “`Private`”

I've been working on a Mathematica package (call it QuantumDot) that has become huge. Right now, all the back-end helper functions are in context ...
5
votes
0answers
107 views

More frugal display of usage messages in auto-completion popup – possible? [duplicate]

Update: I think the more general question I should have asked is: How should I write usage messages to work well with auto-completion? Is there documentation on how to prepare a package for convenient ...
4
votes
0answers
92 views

Creating compiled search TRIE file for argument string completion

I'd like to generate a compiled search TRIE file (like those found in $InstallationDirectory\SystemFiles\FrontEnd\SystemResources\FunctionalFrequency\) to help ...
4
votes
0answers
157 views

Autocomplete not working with tab key on Mathematica 10.3 Linux

when I want to autocomplete a function I can't use TAB key to expand what I typed in. If I press TAB, it escapes the popup suggestion menu. Autocomplete only works if I press ENTER. Furthermore,once ...
3
votes
1answer
97 views

Can tab just mean “insert tab character”?

Is there a way to set the tab key to simply insert the tab character in a notebook? I often find the sometimes mysterious "features" bound to that key detrimental.
3
votes
2answers
147 views

ContextPath and autocompletion with subpackages

I'm developing a larger package which includes several subpackages. My problem is, that I can't introduce the symbols in the subpackages to the autocompletion by loading the main package, but by ...
3
votes
1answer
284 views

Autocomplete short symbol names in non-global context

Is it possible in v9 to autocomplete the short symbol names when one is operating in a context other than Global`? I.e. after evaluating the following: ...
3
votes
0answers
55 views

Possible reduced GUI performance in 10.4

I have observed significantly reduced performance in GUI in Mathematica v10.4. This is especially visible in autocomplete feature delays. This is very evident when I turn some power saving features ...
3
votes
0answers
25 views

Browse and Import local files with inline autocomplete? [duplicate]

Inline auto-complete is convenient: Can it be extended to browse and import local filesystem? I'm aware of the [[Experimental]] (since V 9?) AutoComplete could be used interactively with ...
3
votes
0answers
64 views

Why does Mathematica 10 autocomplete not work with \[Breve]?

Let us define the following symbol: v˘name (The Brave (˘) is typed by entering [EscapeKey]bv[EscapeKey].) In Mathematica 9, this symbol name is shown as a ...
3
votes
0answers
60 views

Autocomplete from inside Module and SetDelayed

Autocomplete in Mathematica 9 offers suggestions from inside SetDelayed and Module. For example, after running: ...
2
votes
1answer
95 views

Function parameters hint for user defined functions?

f1[a_, b_, c_] := Module[{}, Print[a]; ] Completion Ctrl-Shift-K doesn't have hint for function arguments. So I have to copy function arguments nearby: <...
2
votes
1answer
331 views

Function definitions in init.m don't work

I can't get any function defined in $UserBaseDirectory/Kernel/init.m to work. For example: ...
2
votes
0answers
26 views

File path autocompletion options?

Suboptions like "FileCompleteEnable" in CodeAssistOptions are new in v10. Are there any options I can exercise with respect to the behavior of filepath autocompletion? Then is there anyway to set ...
1
vote
1answer
193 views

Function input assistance not working in Mathematica 8?

I'm sorry if this not allowed here. On one computer (maybe with a newer version of Mathematica?) the autocomplete/input assistance for functions works perfectly: when I start typing one like ...
1
vote
2answers
49 views

Why autocompletion of file name is not working in notebookdirectory?

I use windows system and Mathematica 10 The default working directory is c:\\user\\name\\document If I type Import["xx , ...
1
vote
0answers
214 views

Mathematica crashing when attempting autocompletion [closed]

I have been using Mathematica 10.4 Student Edition since months and it worked just fine on my Asus X552C (Ubuntu 14.04). Three or four days ago the problem started. Whenever I try to type something ...
1
vote
0answers
42 views

How to use alphabetical autocomplete?

Mathematica maintains a file with the history of commands input by the user (under ...
1
vote
0answers
62 views

Can mathematica be configured to auto pair different parenthese?

In DrRacket, the editor can auto pair different parentheses, for example code like (let [(x 3 and whether press ) or ...
1
vote
0answers
86 views

Auto-completion for option values in user-defined functions [duplicate]

In here, and all it's closely related links, I cant find anything that tells me how to set a list of the optional arguments. All I want is something like this ...
1
vote
0answers
104 views

Auto-complete for user defined functions [duplicate]

If I define a symbol in Mathematica, it doesn't show up in the autocomplete list that works for symbols in System. Test code: ...
1
vote
0answers
160 views

Question about variable name autocompletion in $Mathematica$ 9 on OS X

For the command autocompletion, I can simply use Ctrk+K and then use Return or Tab to choose the completion. But when I want to autocomplete the local variables I have input, Ctrk+K works, but both ...
0
votes
1answer
203 views

Autocomplete not working on Mma9 on Linux

I started using Mathematica 9 on Ubuntu 12.10 and, sometimes, autocomplete doesn't work. The suggestions window shows up for just a fraction of second, and quickly disappears. Do you have any idea on ...