Skip to content

Commit 3bf7573

Browse files
committed
feat: disable double-click to run by default
- This is because it conflicts with opening with preview disabled. - It can be re-enabled with settings.
1 parent 2d34ff0 commit 3bf7573

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
| `path` | `string` | | `"task"` | Path to the Task binary. Can also the name of a binary in your `$PATH`. If Task is installed via Snap, set this to `/snap/task/current/task`. |
4444
| `outputTo` | `string` | `"output"`, `"terminal"` | `"output"` | Where to print the output of tasks. Note that the output panel does not support ANSI colors. |
4545
| `checkForUpdates` | `boolean` | | `true` | Check if there is a newer version of Task on startup. |
46-
| `doubleClickTimeout` | `number` | | `500` | Time in milliseconds to consider a double-click. A value of 0 will disable double-clicking. |
46+
| `doubleClickTimeout` | `number` | | `0` | Time in milliseconds to consider a double-click. 0 disables double-click to run. 500 is a good starting point if you want to enable it. |
4747
| `tree.nesting` | `boolean` | | `true` | Whether to nest tasks by their namespace in the tree view. |
4848
| `tree.sort` | `sort` | `default`, `alphanumeric`, `none` | `"default"` | The order in which to display tasks in the tree view. |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@
302302
},
303303
"doubleClickTimeout": {
304304
"type": "number",
305-
"default": 500,
306-
"description": "The double-click timeout for a task in the tree view. To disable double-click to run, set this to 0."
305+
"default": 0,
306+
"description": "The double-click timeout for a task in the tree view. 0 disables double-click to run. 500 is a good starting point if you want to enable it."
307307
},
308308
"tree": {
309309
"type": "object",

src/utils/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Settings {
3131
this.path = config.get("path") ?? "task";
3232
this.outputTo = config.get("outputTo") ?? OutputTo.output;
3333
this.checkForUpdates = config.get("checkForUpdates") ?? true;
34-
this.doubleClickTimeout = config.get("doubleClickTimeout") ?? 500;
34+
this.doubleClickTimeout = config.get("doubleClickTimeout") ?? 0;
3535
this.tree = new TreeSettings();
3636
this.terminal = new TerminalSettings();
3737
}

0 commit comments

Comments
 (0)