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

Quick way to add multiple items with keyboard shortcuts #9

Closed
muelli opened this issue Jan 4, 2018 · 3 comments
Closed

Quick way to add multiple items with keyboard shortcuts #9

muelli opened this issue Jan 4, 2018 · 3 comments

Comments

@muelli
Copy link

muelli commented Jan 4, 2018

My use case is to prepare a shopping or todo list in an editor of my choice and then upload that. So I'd appreciate to be able to upload my list in some format.
Likewise, it may make sense to offer an export in a plain text format for people to backup their data. And re-import later or simply share with someone.

@noyainrain
Copy link
Owner

noyainrain commented Jan 14, 2018

Summary of our short IRC chat:

  • A plain text export would be nice to give the user control over their data
  • The UI currently is a bit too cumbersome for creating a large amount of items, thus the need for preparing lists offline. We need a faster input UI.

After a bit of brainstorming, I think we can enhance the new item form by:

  • Changing the buttons from Done | Cancel to Add | Add more | Cancel, where Add more will save the item, but also keep the form open and reset it, so one can immediately add another item.
  • Adding two keyboard shortcuts:
    • [A] on the list page will open and focus the new item form
    • [Shift+Enter] on any of the input fields will trigger the Add more behaviour

With this, typing e.g.

[A]Apple[Shift+Enter]Orange[Shift+Enter]Cat[Enter]

on the list page will result in three new items (Apple, Orange, Cat). There is no need to use the mouse and creating multiple items should be much quicker.

What do you think @muelli, would this solve your use case?

@noyainrain noyainrain changed the title import and export lists Quick way to add multiple items Feb 1, 2018
@noyainrain
Copy link
Owner

Depends on noyainrain/micro#14 .

Exporting lists is now tracked in #12 .

@noyainrain noyainrain self-assigned this Feb 1, 2018
@noyainrain noyainrain changed the title Quick way to add multiple items Quick way to add multiple items with keyboard shortcuts Feb 4, 2018
@noyainrain
Copy link
Owner

noyainrain commented Feb 16, 2018

While implementing keyboard shortcuts, I noticed that shortcuts alone make item input way faster, so we do not even need an additional button.

Revisiting the previous example, one would now type:

[A]Apple[Enter][A]Orange[Enter][A]Cat[Enter]

I also added shortcuts for navigating, editing, trashing, restoring and moving items, which makes managing a list with the keyboard a breeze 🙂 .

Hope that solves the described use case (feel free to comment if not). Closing the issue for now.

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

No branches or pull requests

2 participants