sleek icon indicating copy to clipboard operation
sleek copied to clipboard

Tab completion for contexts and projects in new task window

Open stephprobst opened this issue 1 year ago • 1 comments

Feature Request

Description: In Sleek 1.* there was tab completion when adding topics or projects to a task. It would be great to have that again.

Implementation Details: When typing @ in the new task text box, a selection of the previously used contexts gets displayed. Now the user should be able to hit the tab button to auto-complete with the first entry from this list. Then the user should be able to hit enter to save the task. This would drastically speed up the workflow of adding new tasks.

image

stephprobst avatar Nov 07 '23 13:11 stephprobst

@stephprobst this happens because the React component (react-autosuggest) does not support Tab out of the box and I havn't been able to find a work around for this. The supported keyboard shortcut is to use the Arrow Down and Up keys.

ransome1 avatar Jan 26 '24 18:01 ransome1

@stephprobst Actually I kind of fixed this after all. If you use the autocomplete feature to narrow down the results to 1 and then hit tab key, sleek will add the suggestion to the text field. However, if you only narrow it down to 2 or more results, hitting the tab key does not have any effect. My expectation would be, that the first suggestions would be highlighted. However I simply cannot find a solution how to implement this with the react-autosuggest component. I'm afraid this will be a "won't do".

ransome1 avatar Feb 09 '24 18:02 ransome1

@ransome1 : Great. That's definitely helpful and should solve the issue for me. Thanks!

stephprobst avatar Feb 09 '24 18:02 stephprobst

Please re-open, if it is not working as expected.

ransome1 avatar Feb 10 '24 07:02 ransome1