Skip to content

[COMPLETED] Add shortcuts to go back and quit in the TUI#38

Open
Harshithkv07 wants to merge 2 commits into
CSE-25:mainfrom
Harshithkv07:feature/tui-shortcuts
Open

[COMPLETED] Add shortcuts to go back and quit in the TUI#38
Harshithkv07 wants to merge 2 commits into
CSE-25:mainfrom
Harshithkv07:feature/tui-shortcuts

Conversation

@Harshithkv07

Copy link
Copy Markdown
Contributor

Implemented 'Go Back' and 'Quit' options in the Course Selection menu (coursechoose.go).
This aligns the main menu with the sub-menus' navigation pattern.

@Abhinav-ark @Ashrockzzz2003

@Devpool-soc

Copy link
Copy Markdown
Collaborator

Hey @Harshithkv07! Thank you for opening a pull request. Make sure to tag the maintainers and link the issue you are solving in your pull-request description if you have not already and they'll review as soon as possible.

@Abhinav-ark

Copy link
Copy Markdown
Member

@Harshithkv07, why was code indentation changed?

@Harshithkv07

Copy link
Copy Markdown
Contributor Author

I ran go fmt ./... on the project to prevent future linders , @Abhinav-ark

@Ashrockzzz2003 Ashrockzzz2003 self-requested a review January 11, 2026 11:05
}

// --- Added Go Back and Quit ---
options = append(options, huh.NewOption("Go Back", "Back"))

@Ashrockzzz2003 Ashrockzzz2003 Jan 11, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go back, in the case of course choose page, is the same thing right? Essentially making your change a duplicate of an existing feature of course page

What we need is a stack prolly that can track our path, and then when user chooses go back, we wanna pop one off the stack and go the prev menu.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants