You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can make it possible to create labels with the TAB key? #46
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.
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.
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.
@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.
Activity
[-]Магическая клавиша TAB?[/-][+]Can make it possible to create labels with the TAB key?[/+]x87 commentedon Sep 23, 2020
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.
MatiDragon-YT commentedon Oct 1, 2020
The possibility of adding addons to the SB, I think it would be great, but leaving a label every time I press
TABcould be a bit chaotic for those who code with the high level syntax and like to have things more organized with thetab.Although you can create labels with macros/templates... in my case, I create a
:label_00with letterkIt occurred to me that maybe I could add an "AUTO-TAB" by hitting
enterat the end of eachIF,THEN,ELSE,WHILE,REPEATandFOR. Although this can also be done with macros, it would be more convenient this way.Fonthas a slightly larger margin than the rest. and / or its content could perhaps be moved toColors, thereby obtaining more space for new options, although the margin ofLooking deeph (lines)would also have to be corrected to fit everything.wmysterio commentedon Oct 2, 2020
@MatiDragon-YT,
TABkey 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
optionsinterface is nice! ButFontit is notColor! Maybe need renameColorname toStyle.