[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help autocomplete

From: Mike Miller
Subject: Re: Help autocomplete
Date: Wed, 10 May 2017 22:56:15 -0700
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, May 10, 2017 at 21:15:18 +0000, Bruno Carlos Lugão wrote:
> Based on the code of the following function
> File code myfunction.m
> Function y = myfunction (x)
> y = x. ^ 2;
> Endfunction
> Assuming that the path where this function is already saved in
> octaverc, is it possible for the name myfunction to appear in
> autofill?

I assume you mean the autocomplete feature of the code editor? If so,
then yes, it is possible, but it doesn't work very reliably from what I
can tell.

The set of all known functions is cached in the file
~/.config/octave/VERSION/qsci/octave_kbf.pap. If you create a new
function file, it won't get added to the cache automatically. But if you
delete the cache, close the tab in the editor, and open it again, the
cache is recreated and should include your new function.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]