Re: Completion Framework for TeXmacs

Massimiliano Gubinelli <[email protected]>
Newsgroups gmane.editors.texmacs.devel
Message-ID <[email protected]>
Dear Owen, 

I'm not familiar with Ivy/Helm. Can you briefly describe what you would like to obtain? On one side TeXmacs provides already scheme sessions embedded in a document. So you could simply either have a document with code which can be sequentially (re)evaluated (a la jupyter notebook or mathematica files). If you want to have, on one side a scheme file and on another a buffer where to evalute, I would try to create a new document with a session and then come glue code in scheme which allows to select part of a scheme file and send them to the other document for evaluation. This should not be too difficult. 

Note that with scheme you can also programmatically create dialogs (but not full fledged editor windows yet). However there are a couple of widgets you could be interested in : one is texmacs-input and the other texmacs-output. The second allows to render arbitrary documents, while the first is a full editor, but you do not get the toolbars nor the menus...
You can see some examples in TeXmacs/progs/kernel/gui/menu-test.scm


for example, open a scheme session and then do

(show (widget6))

to see the two widgets I mentioned above in action.


Best
Max


> On 15. Jan 2021, at 23:21, Owen Lynch <[email protected]> wrote:
> 
> I guess the real thing to have here is a fully-scriptable, multiline minibuffer widget. Is this already somewhere in the code?
> 
> -Owen
> 
> Excerpts from Owen Lynch's message of januari 15, 2021 11:15 pm:
>> After more digging, it seems like this would have to be done in a similar manner to the "smart-file" input method, which is hard-coded into the TeXmacs input system, in Plugins/Widkit/Input/input_widget.cpp.
>> 
>> Is there a more flexible way of doing this? I.e., in pure scheme rather than having to rewrite the C++, just like Ivy/Helm is in pure elisp?
>> 
>> -Owen
>> 
>> Excerpts from Owen Lynch's message of januari 15, 2021 9:37 pm:
>>> Hello all,
>>> 
>>> Couple questions.
>>> 
>>> Is there anything for TeXmacs that works in an analogous way to Ivy/Helm from emacs?
>>> 
>>> Also, when editing a scheme file, is it possible to evaluate parts of it, like one would do with C-x C-e from emacs?
>>> 
>>> Thanks!
>>> -Owen
>>> 
>> 
> 
> _______________________________________________
> Texmacs-dev mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/texmacs-dev


_______________________________________________
Texmacs-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/texmacs-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.