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

[Feature Request] Select: Add ability to insert spaces/empty lines #230

Open
SHU-red opened this issue Feb 8, 2024 · 0 comments
Open

[Feature Request] Select: Add ability to insert spaces/empty lines #230

SHU-red opened this issue Feb 8, 2024 · 0 comments

Comments

@SHU-red
Copy link

SHU-red commented Feb 8, 2024

I recently used this awesome project and love the way it handles.
Due to the fact that i have to create a relatively large menu i would like to have the ability to create "space-lines" or "empty-lines" which can not be selected

Currently

   Commit: Add Commit 
  > Commit: Delete Commit
   Bucket: Copy to Clipboard 
   Bucket: Switch 
   Bucket: New 
   Bucket: Rename 
   Bucket: Delete
   Config: Switch
   Check In: Members
   Close

Target

   Commit: Add Commit 
  > Commit: Delete Commit

   Bucket: Copy to Clipboard 
   Bucket: Switch 
   Bucket: New 
   Bucket: Rename 
   Bucket: Delete

   Config: Switch

   Check In: Members

   Close
  • It would be nice if the cursor just jumps past the empty line
  • Is there already a hack to achieve this?

Implementation proposal

Maybe something like this?
But my skills are absolutelty not good enough to tell you how it could be done 😅

	// Main Menu Options
	options := []option{
		{Topic: "Commit", Action: "Add Commit", Function: func() { cmm.Add() }, Description: "Add a new line to your bucket"},
		{Topic: "Commit", Action: "Delete Commit", Function: func() {}, Description: "Delete a single line from your commit"},
		{},
		{Topic: "Bucket", Action: "Copy to Clipboard", Function: func() {}, Description: "Copy Bucket to your clipboard"},
		{Topic: "Bucket", Action: "Switch", Function: func() {}, Description: "Switch to another Bucket"},
		{Topic: "Bucket", Action: "New", Function: func() {}, Description: "Create new Bucket"},
		{Topic: "Bucket", Action: "Rename", Function: func() {}, Description: "Rename a Bucket"},
		{Topic: "Bucket", Action: "Delete", Function: func() {}, Description: "Delete Bucket"},
		{},
		{Topic: "Config", Action: "Switch", Function: func() { configSwitch() }, Description: "Switch to another Config"},
	}
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

No branches or pull requests

1 participant