kbar icon indicating copy to clipboard operation
kbar copied to clipboard

feat: :sparkles: allow looping of lists

Open AkashRajpurohit opened this issue 2 years ago • 4 comments

In reference to #224

AkashRajpurohit avatar Jun 24 '22 14:06 AkashRajpurohit

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
kbar ✅ Ready (Inspect) Visit Preview Jun 26, 2022 at 10:51AM (UTC)

vercel[bot] avatar Jun 24 '22 14:06 vercel[bot]

I have updated the part where we determine what should be the next index when we press arrow up and arrow down, I have tried to do a simulation and have mentioned the comments about what each block is doing, @timc1 request you to review this. I have verified it by checking for scenarios like

  1. allowLoop = true / false and list have section headers
  2. allowLoop = true / false and list does not have section headers

AkashRajpurohit avatar Jun 26 '22 10:06 AkashRajpurohit

any news on this one?

benatpigment avatar Sep 16 '22 09:09 benatpigment

@benatpigment the project is not being maintained I suppose, the linked issue for this have also being closed by slate bot. 😞

AkashRajpurohit avatar Sep 16 '22 09:09 AkashRajpurohit

Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 15 '22 09:11 stale[bot]

@timc1 any thoughts on this one?

AkashRajpurohit avatar Nov 22 '22 02:11 AkashRajpurohit

Hey @AkashRajpurohit, apologies for the later response!

We previously had looping enabled but decided on removing it for the added complexity. I do not have strong feelings for adding this feature back as it adds a lot more logic in for no real benefit.

timc1 avatar Nov 22 '22 02:11 timc1

I think this can be really beneficial when you have lots of items in the list, and I think there are multiple use-cases where kbar is used under these scenarios.

Plus, this is an opt-in feature and the default behavior still remains as a non looping list. Additionally, I have added comments for future code readers to follow along with this flow.

AkashRajpurohit avatar Nov 22 '22 13:11 AkashRajpurohit

Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 22 '23 15:03 stale[bot]