• Grammer Feature Requests 5 1
Currently:  

Author Topic: Grammer Feature Requests  (Read 46810 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #90 on: November 02, 2019, 01:21:02 pm »
Necro-post since this is the appropriate location:

I was thinking it might be neat to be able to execute Grammer programs that are stored in Groups. I'm not sure that it would be useful, though.

Some other features that might be cool:
  • Viewing and creating DoorsCS-style folders in Grammer's main menu.
  • Archiving/Unarchiving from the main menu.
  • Add some useful settings like pretty much all other shells have (enable lowercase, for example).
  • Add a simple source viewer in the main menu (not an editor, just something to preview a file).

These aren't ideas that are really necessary, so I might not even add them. Or maybe I need a way to add "hooks" for the main menu so that people can download extensions?

I'd love some feedback, but there aren't many active Grammer users anymore.

Offline NonstickAtom785

  • LV3 Member (Next: 100)
  • ***
  • Posts: 78
  • Rating: +4/-0
  • Just live life. Cal-cu-lat-or style!
    • View Profile
Re: Grammer Feature Requests
« Reply #91 on: November 04, 2019, 12:11:53 pm »
I think instead of adding hooks you should create an appvar search that finds any appvar that starts with a specific header, like how Grammer figures out which prgms are Grammer programs.

I don't know if you would need hooks or not for that.  :w00t:
« Last Edit: November 04, 2019, 12:15:04 pm by NonstickAtom785 »
Grammer2 is Good!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #92 on: November 04, 2019, 01:52:18 pm »
Oh, I mean just Grammer's own "hook" system where it calls external routines (in appvars) at various stages of menu rendering. The plan was to have a way for external packages to kind of register with Grammer, with pertinent info stored in Grammer's appvar so that multiple hooks and stuff could be registered. But, that got complicated when I tried it last year :P

Offline NonstickAtom785

  • LV3 Member (Next: 100)
  • ***
  • Posts: 78
  • Rating: +4/-0
  • Just live life. Cal-cu-lat-or style!
    • View Profile
Re: Grammer Feature Requests
« Reply #93 on: November 05, 2019, 08:41:46 am »
So what I'm getting from this is that you tried to make a system where external variables registered with Grammer and Grammer would interact with the hooks of that variable??? Could you dumb it down a little? O.O
Grammer2 is Good!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #94 on: November 05, 2019, 09:05:06 am »
So my intent was a "parser hook" kind of feature. So when Grammer was getting ready to parse a token, it would first pass it through a third-party program in case they would alter parsing. Now I think it might be useful on the main menu during, say, the filtering step (when it is figuring out which programs to display), or for keypresses or something.

Offline NonstickAtom785

  • LV3 Member (Next: 100)
  • ***
  • Posts: 78
  • Rating: +4/-0
  • Just live life. Cal-cu-lat-or style!
    • View Profile
Re: Grammer Feature Requests
« Reply #95 on: November 05, 2019, 09:46:44 am »
Ahh. I get it now. Thanks for explaining. I know how annoying that can get.  <_< 1337
Grammer2 is Good!

Offline NonstickAtom785

  • LV3 Member (Next: 100)
  • ***
  • Posts: 78
  • Rating: +4/-0
  • Just live life. Cal-cu-lat-or style!
    • View Profile
Re: Grammer Feature Requests
« Reply #96 on: November 07, 2019, 09:54:04 am »
The Menu( Command Feature Request

Menu(ᵒx,y,w,"Item 1"[Lbl pointer],"Item 2"[Lbl Pointer],etc...

If that's to hard then add + to it maybe?

Another Idea:
Menu('x,y,w,[Lbl pointer]*

*The Lbl would have a description, in the form of a String, that tells the menu what the name should be. If there is no description then the name of the label is used.
Grammer2 is Good!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #97 on: November 07, 2019, 10:06:55 am »
Quote
*The Lbl would have a description, in the form of a String, that tells the menu what the name should be. If there is no description then the name of the label is used.

I don't understand, sorry. As for the former, you can use the existing Menu(' command. You supply a pointer to a routine that gives the strings, and a routine that does something when an item is selected. In the latter routine, you could Goto different labels based on what is selected.