Re: [Vim-latex-devel] Completion of Tcommands
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2003-07-12 19:38:07
|
Hello, * On Sat, Jul 12, 2003 at 07:41:11PM +0200, Mikolaj Machowski <mi...@wp...> wrote: > I'd like to add completion of commands similar to those implemented > yesterday in TPackage. I would improve usability of Tcommands. > Candidates are: > > TTemplate > [...] > > BTW I am curious if it would be possible to rewrite current system of > hints basing on input() (PromptFor...) to command :Enter_your_choice > It would enable completion of commands with <Tab> or <C-D> I know you decided to maintain a TeX-specific templates plugin, but I think that the version of µTemplate I'm working on already proposes the kind of completion mecanism you are looking for. For instance, with it (see my sig for its address), try to type in insert-mode (within a latex document): fig<c-r><tab> (or <c-r><space> which is the same for TeX files) or ce<c-r><tab> (the only two LaTeX-templates proposed for now: figure and center) If there were two templates with similar names like for instance `tabular' and `table', a confirm-box would popup on "tab<c-r><tab>" so we can choose which template we want to expand. BTW, why developping a feature concurrent to templates ? I'm thinking to latexSuite's macros which looks like more restricted templates than the ones we could have with a templates-expander. What did I miss ? The only thing missing to my version of µTemplate is a better support of non-latin1 files -- I think I will incorporate something like the "!comp!" you are using. However, it is a very big plugin with many features; it may sometimes be considered as (as we would say in French): "une enclume pour écraser des mouches" (-> an anvil to crush flies) -- I don't remember the idiomatic expression in English. HTH -- Luc Hermitte http://hermitte.free.fr/vim/ressources/ mu-template.tar.gz |