diff --git a/extensions/things/CHANGELOG.md b/extensions/things/CHANGELOG.md index ac1919d9cdc..29baf99150b 100644 --- a/extensions/things/CHANGELOG.md +++ b/extensions/things/CHANGELOG.md @@ -1,5 +1,9 @@ # Things Changelog +## [Focus Input Fields] - 2024-10-25 + +- Add shortcuts to focus the input fields in both the `Add New To-Do` and `Add New Project` commands. + ## [Quick ToDo Fixes] - 2024-08-19 - Quick ToDo Command: Disable Automatic Date (when & deadline), List parsing when AI is not enabled in preferences/is not available via environment. diff --git a/extensions/things/package.json b/extensions/things/package.json index eae624f1ef4..f13fcd45c97 100644 --- a/extensions/things/package.json +++ b/extensions/things/package.json @@ -10,7 +10,8 @@ "andreaselia", "stelo", "thomaslombart", - "srikirank" + "srikirank", + "vimtor" ], "license": "MIT", "commands": [ diff --git a/extensions/things/src/add-new-project.tsx b/extensions/things/src/add-new-project.tsx index 53d7bfc291f..10b002849e7 100644 --- a/extensions/things/src/add-new-project.tsx +++ b/extensions/things/src/add-new-project.tsx @@ -99,6 +99,50 @@ Tasks:`); + + focus('title')} + shortcut={{ modifiers: ['cmd'], key: '1' }} + /> + focus('notes')} + shortcut={{ modifiers: ['cmd'], key: '2' }} + /> + focus('when')} + shortcut={{ modifiers: ['cmd'], key: 's' }} + /> + focus('areaId')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 'm' }} + /> + focus('tags')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 't' }} + /> + focus('toDos')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 'c' }} + /> + focus('deadline')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 'd' }} + /> + } > diff --git a/extensions/things/src/add-new-todo.tsx b/extensions/things/src/add-new-todo.tsx index 5aacec0a97f..8eb5ce84502 100644 --- a/extensions/things/src/add-new-todo.tsx +++ b/extensions/things/src/add-new-todo.tsx @@ -138,6 +138,50 @@ export function AddNewTodo({ title, commandListName, draftValues }: AddNewTodoPr {environment.canAccess(AI) && ( )} + + focus('title')} + shortcut={{ modifiers: ['cmd'], key: '1' }} + /> + focus('notes')} + shortcut={{ modifiers: ['cmd'], key: '2' }} + /> + focus('when')} + shortcut={{ modifiers: ['cmd'], key: 's' }} + /> + focus('listId')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 'm' }} + /> + focus('tags')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 't' }} + /> + focus('checklist-items')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 'c' }} + /> + focus('deadline')} + shortcut={{ modifiers: ['cmd', 'shift'], key: 'd' }} + /> + } // Don't enable drafts if coming from another list or an empty view