Skip to content

chore: snippets missing documentation on use, not showing in ctrl+space menu, snippets design, sidebar docs #16

@carafelix

Description

@carafelix
  • add more clear documentation to snippet usage
  • add snippets list in the grammy sidebar menu
  • add snippets to show in the ctrl+space menu inside the text editor
  • add toggleable snippets for most used / popular pluggins
    example: if using and toggle the commands plugin, instead of bot.command etcetc,
    should do (on every word it means the cursor-tab write selection thing)
_commandsName_.command('_name_', '_description_', (ctx) => { ctx._method_ (_cursorEndsHere_)} )

example2:

const _menu_ = new Menu("_my-menu-identifier_")
  ._text_(_cursorEndsHere_)
  • improve snippet flexibility using tab write to ctx.method instead of fixed ctx.reply('example')
"body": [
      "bot.command('${1:command}', (ctx) => {",
      "",
      "ctx._method_(_cursorEndsHere_),
      "});",
     ]

-[ ] add to the grammy sidebar menu a tab for checking / unchecking the plugins you are using, so the snippets change based on that? In the same list it could have a links to the docs for that plugin?

I'll do a pr when I have time

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions