Powerpack 3

Iā€™m sure I forgot to mention about something but letā€™s do it anyway.
Remember - itā€™s an experiment / hobby project.
I have a list of ideas for new features, probably useful not only for me, so please donā€™t ask me to create something you need, itā€™s more than likely that I will have no time for this or that it is already on my list.

https://dynalist.io/d/lzBWy1bl_LtzycHHl-ktmSVB

13 Likes

:man_student: So much work youā€™ve done on this. Thank you.

1 Like

The Agenda view is just what Iā€™ve been looking for.

Just one thing Iā€™ve noticed. The Agenda Query names are not saving for me. They come up as ā€œundefinedā€ when selected for Agenda Views.

Also, now that Custom CSS is baked into Dynalist, I am curious to know what the different would be with the way it works in PowerPack 3.

Oops, I messed it just before release. You can update script to v3.0.1 :slight_smile:

I made it before the official version, but wasnā€™t ready with other stuff to release :stuck_out_tongue: Itā€™s better in my use case - I like to change themes, few weeks sepia, few weeks dark, and with this I can have stylesheet for each theme and one more general (line height, font-family, font-size, etc) for both.

Iā€™m working now on integrating Agenda with Google Calendar. I can list events in console, which means itā€™s only a matter of time to fit it into Agenda query results :ok_hand:

Creating events should be possible too :open_mouth:

2 Likes

Itā€™s working

update to v 3.1.0

for now events are read only, maybe in the future I will add ability to modify/remove/add them

For this to work you will need to create API Key and Client ID and paste them into Powerpack settings (Google Calendar Integration section).
Go to https://console.developers.google.com/flows/enableapi?apiid=calendar
click ā€œContinueā€
click ā€œGo to credentialsā€
In ā€œWhere will you be calling the API from?ā€ dropdown select ā€œWeb browser (JavaScript)ā€
In ā€œWhat data will you be accessing?ā€ select ā€œUser dataā€
click ā€œWhat credentials do I need?ā€
In ā€œAuthorized JavaScript originsā€ input paste https://dynalist.io and press Enter
click ā€œCreate OAuth client IDā€
insert some random text into ā€œProduct name shown to usersā€
click ā€œContinueā€
copy your client id and paste it into Powerpack settings
click ā€œDoneā€
click ā€œCreate credentialsā€ and choose ā€œAPI Keyā€ from the dropdown
copy this key, click ā€œCloseā€, paste it into Powerpack settings
click ā€œsaveā€ on both inputs in Powerpack settings, click ā€œActiveā€, and you should see popup to log in (if you donā€™t see any popup make sure your browser didnā€™t block it, look at the right side of url box, there might be some icon), thatā€™s all :slight_smile:

In your agenda query there is ā€œIntegrate with Google Calendarā€ checkbox before ā€œAuto refreshā€ settings. You need to check ā€œGroup items by dateā€ first to see this.

1 Like

v 3.1.5
itā€™s possible now to show only google calendar events in agenda query: check ā€˜Group items by dateā€™, check ā€˜Integrate with Google Calendarā€™ and leave ā€œSearch documents:ā€ empty

2 Likes

Yep. Worked for me. Genius!

1 Like

@Piotr thanks for the great work!

It works perfect in Chrome but something went wrong when i try to install Powerpack 3.1.5 on desktop app.

MacOS 10.13.15, latest Chrome.

Seems like itā€™s because of GCal integration. I tried it now and I donā€™t have this error, but unfortunately in desktop app itā€™s not possible to log in to the service without native integration (I have one idea to test, but not for now) and I will try later to activate this part of the code only on web app, it should be possible, Iā€™ll let you now when itā€™s ready.

I tried to disable GCal integration in Chrome and reinstall Powerpack in desktop app.

Now i can see my notes and the Powerpack settings in the app, but still one warning after install and sorting is not workingā€¦

  1. After install the powerpack:

  2. After enable ā€œSortingā€:

You have this problem only on desktop app?

You have this problem only on desktop app?

Yes, only on it. In Google chrome sorting works well

In v.3.1.7 code for calendar is not loading in desktop app, you can check if that will help with the sorting bug. Other than that I have no ideas, we have the same environment

@Piotr Yes, it works!

  • No errors in desktop app during installation of Powerpack with enabled GCal integration, just one warning.
  • Sorting works properly

Thanks for the new version!

1 Like

@Piotr
one more question.

On agenda view there is a strange style not as in all other notes. The same for Mac application and Web application (Chrome).
Is it possible to change it?

You can change font with custom css
.agenda-query .result-item { font-family: 'Calibri'; }

Thank you very much!

Sorry if this question is already answered somewhere. I want to install your (awesome) skript on the Windows Desktop Version of Dynalist. What do you mean with ā€œDev Consoleā€, the normal Windows-Shell?

Thank you and keep up the good work!

Dynalist desktop app is based on Chrome and you can access there Chrome Developer Tools https://developers.google.com/web/tools/chrome-devtools/ . Open the app and press ctrl+shift+i, click on the ā€œconsoleā€ tab and paste the code

1 Like