Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid listing deprecated functions in command autocomplete #1402

Open
4 tasks done
MartyLake opened this issue Apr 24, 2024 · 0 comments
Open
4 tasks done

Avoid listing deprecated functions in command autocomplete #1402

MartyLake opened this issue Apr 24, 2024 · 0 comments

Comments

@MartyLake
Copy link

Hello,
I am back to using vimwiki more regularly, and whenever I want to generate tags, I use the autocomplete :VimwikiGenerateT<TAB> to see the exact solutions. However, I get proposed two versions: when I try the deprecated one, I get a warning that it is deprecated.

I know that one of those is deprecated, but I would it be possible to avoid listing it in the autocomplete ?

One solution for this would be to wrap the deprecated version definition around a variable, say g:vimwiki_dont_define_deprecated_vimwikigeneratetags that, when set to 1, avoid defining deprecated versions of that method?

That would help because now autocomplete will only show legit functions.
Best,

settings

let g:vimwiki_key_mappings =
    \ {
    \   'all_maps': 1,
    \   'global': 1,
    \   'headers': 1,
    \   'text_objs': 1,
    \   'table_format': 1,
    \   'table_mappings': 1,
    \   'lists': 1,
    \   'links': 1,
    \   'html': 1,
    \   'mouse': 1,
    \ }

let g:vimwiki_hl_headers = 1
let g:vimwiki_list = [{
            \"path": $REDACTED."/Wiki",
            \"path_html": $REDACTED."/Wiki_html",
            \'template_path': $REDACTED."/Wiki_html_assets",
            \'template_default': 'default',
            \'template_ext': '.html',
            \'generated_links_caption': 1,
            \'auto_export': 1,
            \'auto_toc': 1,
            \'auto_diary_index': 1,
            \'auto_generate_links': 1,
            \'auto_generate_tags': 1,
            \'maxhi': 1,
            \'syntax': 'default',
            \'ext': '.wiki.txt',
            \'index': 'index',
            \'auto_tags': 1}]

syntax

default

steps to reproduce the issue

  • enter `:VimwikiGenerateT

expected

  • only the legit :VimwikiGenerateTagLinks is automatically completed

actual

  • two versions are proposed, and it is up to my brain to actually remember

:VimwikiShowVersion

Version: 2024.01.24
Os: Mac
Vim: 901
Branch: dev
Revision: 69318e7
Date: 2024-03-16 14:23:28 -0300

Prior to submitting a new issue make sure to complete these steps:

  • Include the VimWiki settings from your .vimrc
  • Include the syntax you are using (default / Markdown / MediaWiki)
  • Provide a detailed description of the problem including steps to reproduce the issue.
  • Include the output of :VimwikiShowVersion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant