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

SEQN Grammar: Add auto-formatting capabilities for seqn #1477

Open
shaheerk94 opened this issue Sep 25, 2024 · 0 comments
Open

SEQN Grammar: Add auto-formatting capabilities for seqn #1477

shaheerk94 opened this issue Sep 25, 2024 · 0 comments
Labels
feature New feature or request

Comments

@shaheerk94
Copy link

shaheerk94 commented Sep 25, 2024

Checked for duplicates

No - I haven't checked

Alternatives considered

No - I haven't considered

Related problems

seqn can be hard to read when there are tags attached to commands:

C USER_SEQ_DIR_MULTIPLY Htarget momentum_bound negative_one 
@METADATA "ASSUMED_MODEL_VALUES" "TELEMETRY::GNC_MME_MOM_RWA_IF_1 = 10, 00:00:00.000"
C USER_SEQ_DIR_LV_SET_TELEM Hx "GNC_MME_MOM_RWA_IF_1" 

Describe the feature request

Propose adding an auto-formatter for seqn that a user can run on a sequence to auto-format sequences to a specific format style. This should at least:

  • Correct indenting for conditionals and loops
  • Correct indenting for tags attached to commands
  • Correct spacing within a line, for example, between time tags, commands, and arguments
  • Correct indenting for requests

UPDATE:
Chet told me there does already exist a sequence_auto_indent function that is applied on import and can be applied via keyboard shortcut and on import. So we may get this for free already! I think we might still want a button to do this instead of only relying on keyboard shortcuts or re-opening. Still would like @metadata tags to get indented as well.

@shaheerk94 shaheerk94 added the feature New feature or request label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant