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

Option to disable/modify the default commands #3765

Closed
1 task done
lsoksane opened this issue Mar 9, 2023 · 0 comments · Fixed by #3767
Closed
1 task done

Option to disable/modify the default commands #3765

lsoksane opened this issue Mar 9, 2023 · 0 comments · Fixed by #3767

Comments

@lsoksane
Copy link

lsoksane commented Mar 9, 2023

The list of Intellisense suggestions provided by default is too long to my taste, and I would like to have an option to define all the completions by hand. I can achieve more or less what I want by replacing data/packages/tex.json by

{
  "includes": {},
  "cmds": {},
  "envs": {},
  "options": [],
  "keyvals": []
}

and data/commands.json by

{
  "cite{}": {
    "snippet": "cite{$1}",
    "detail": "reference",
    "postAction": "editor.action.triggerSuggest"
  },
  "ref{}": {
    "snippet": "ref{${1}}",
    "postAction": "editor.action.triggerSuggest"
  },
  "usepackage{}": {
    "snippet": "usepackage{$1}",
    "postAction": "editor.action.triggerSuggest"
  },
  "includegraphics[]{}": {
    "snippet": "includegraphics[${2:options}]{${1:name}}",
    "postAction": "editor.action.triggerSuggest"
  }
}

I suggest the following added features:

  1. Option to skip loading of commands from tex.json
  2. Option to replace commands.json with another file
  3. Option to define a blacklist of commands that will not be added to completions based on the file that I am editing.

Pre-checks

  • The feature request has not been suggested in this repository.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant