Skip to content

Can make it possible to create labels with the TAB key? #46

Closed

Description

@wmysterio

Is it possible to use the TAB key (or define some other) in a certain place, so that then a certain action is performed? For example: I write code like this:

jf @label

After that, I press that key, and at the end of the code, a label is inserted if it does not exist:

jf @label
//...

:label // +++

It will help save a time for jump tables and more.

Activity

  1. changed the title [-]Магическая клавиша TAB?[/-] [+]Can make it possible to create labels with the TAB key?[/+] on Aug 12, 2020
  2. x87 commented on Sep 23, 2020

    @x87
    Collaborator

    this looks like a very niche use case, so I would not expect this any time soon. However would be cool if Sanny supported plugins that could add this functionality.

  3. added
    discussion
    priority:p3
    type:nice-to-have
    and removed on Sep 23, 2020
  4. MatiDragon-YT commented on Oct 1, 2020

    @MatiDragon-YT
    Member

    The possibility of adding addons to the SB, I think it would be great, but leaving a label every time I press TAB could be a bit chaotic for those who code with the high level syntax and like to have things more organized with the tab.
    Although you can create labels with macros/templates... in my case, I create a :label_00 with letter k


    It occurred to me that maybe I could add an "AUTO-TAB" by hitting enter at the end of each IF, THEN, ELSE, WHILE, REPEAT and FOR. Although this can also be done with macros, it would be more convenient this way.

    • In the same way, these could be activated and deactivated from the editor options, of course, if things are organized, since there is some space available between them. For example, Font has a slightly larger margin than the rest. and / or its content could perhaps be moved to Colors, thereby obtaining more space for new options, although the margin ofLooking deeph (lines)would also have to be corrected to fit everything.
  5. wmysterio commented on Oct 2, 2020

    @wmysterio
    Author

    @MatiDragon-YT, TAB key it is example. The point is not about a specific button. I just want to add the ability to insert non-existing labels from the line. It's not really necessary, but I've wanted such a function for a long time :)

    You options interface is nice! But Font it is not Color! Maybe need rename Color name to Style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionpriority:p3scope:IDEtype:nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions