Skip to content

Commit

Permalink
allow switching which task set we pick from
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Feb 21, 2023
1 parent 6847101 commit 784613d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Picker.omnifocusjs/Resources/pick.js
Expand Up @@ -112,7 +112,11 @@
var action = new PlugIn.Action(async () => {
try {
let weights = {};
if (isDuringWorkHours()) {
let chooseWorkTasks = isDuringWorkHours();
if (app.shiftKeyDown) {
chooseWorkTasks = !chooseWorkTasks;
}
if (chooseWorkTasks) {
weights = {
work: 4,
Kraken: 2,
Expand Down
8 changes: 7 additions & 1 deletion Picker.omnifocusjs/Resources/pick.ts
Expand Up @@ -164,7 +164,13 @@
var action = new PlugIn.Action(async () => {
try {
let weights: Record<string, number> = {};
if (isDuringWorkHours()) {

let chooseWorkTasks = isDuringWorkHours();
if (app.shiftKeyDown) {
chooseWorkTasks = !chooseWorkTasks
}

if (chooseWorkTasks) {
weights = {
work: 4,
Kraken: 2,
Expand Down

0 comments on commit 784613d

Please sign in to comment.