obsidian-utilities icon indicating copy to clipboard operation
obsidian-utilities copied to clipboard

Using dates in obsidian-utilities

Open manfrombar opened this issue 2 years ago • 9 comments

I have defined in my Obsidian Daily notes YYYY-MM-DD dddd date format, that it shows 2021-11-16 Tuesday I have tried to modify it into the Alfred workflow but It doesn't work. Can you help me? Thanks

manfrombar avatar Nov 16 '21 22:11 manfrombar

Sure. Give me a couple of days and I'll get back to you with a workaround.

Cheers

On Tue, 16 Nov 2021 at 22:57, manfrombar @.***> wrote:

I have defined in my Obsidian Daily notes YYYY-MM-DD dddd, that it shows 2021-11-16 Tuesday I have tried to modify the Alfred workflow to the default date format but It doesn't work. Can you help me? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHZ32NIG7BEIYANLUIUJDUMLOUDANCNFSM5IFQCA5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

macedotavares avatar Nov 16 '21 23:11 macedotavares

Thanks a lot!!!!!!

Manel Puntí Music Distribución & Algam Ibérica CEO Phone : (34) 934 221 811 Mobile : (34) 609 488 294 Skype : manel.punti1

Aviso legal: Este mensaje, incluidos sus ficheros adjuntos, contienen información confidencial, dirigida a un destinatario y con una finalidad específica protegida por la Ley. Le informamos que si Usted no es el destinatario del mismo, deberá eliminar éste mensaje, quedando estrictamente prohibida cualquier divulgación, copia o distribución de su contenido, así como desarrollar o ejecutar cualquier tipo de acción basada en su contenido. Si Usted es el destinatario, el uso de la información que ha recibido, deberá estar limitado a la finalidad específica por la cual se le ha enviado.

El 17 nov 2021, a las 0:03, Miguel Tavares @.***> escribió:

Sure. Give me a couple of days and I'll get back to you with a workaround.

Cheers

On Tue, 16 Nov 2021 at 22:57, manfrombar @.***> wrote:

I have defined in my Obsidian Daily notes YYYY-MM-DD dddd, that it shows 2021-11-16 Tuesday I have tried to modify the Alfred workflow to the default date format but It doesn't work. Can you help me? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHZ32NIG7BEIYANLUIUJDUMLOUDANCNFSM5IFQCA5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20#issuecomment-970783664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD527QNIBUF3NGRLNNXVETTUMLPN3ANCNFSM5IFQCA5Q.

manfrombar avatar Nov 16 '21 23:11 manfrombar

Alfred uses this Unicode Date Format. So, in your case, you want to replace the date variable in the Daily Note and Daily Journal actions with {date:YYYY-MM-dd EEEE}. Like so:

Screenshot 2021-11-17 at 09 24 50 Screenshot 2021-11-17 at 09 24 58

If everything else is set up correctly, you should be OK. Let me know if you need any further assistance.

Cheers!

macedotavares avatar Nov 17 '21 09:11 macedotavares

Thanks, sorry to trouble you but it doesn’t work

{date:YYYY-MM-dd EEEE} Alfred writes it with the Spanish name 2021-11-17 miércoles I have changed the language in obsidian to Spanish. Obsidian is creating from now Daily Notes (not old ones) in Spanish. Using dn or dj, workflow is opening the DN page but in not appending the text

Can you help me? Thanks

Manel Puntí Music Distribución & Algam Ibérica CEO Phone : (34) 934 221 811 Mobile : (34) 609 488 294 Skype : manel.punti1

Aviso legal: Este mensaje, incluidos sus ficheros adjuntos, contienen información confidencial, dirigida a un destinatario y con una finalidad específica protegida por la Ley. Le informamos que si Usted no es el destinatario del mismo, deberá eliminar éste mensaje, quedando estrictamente prohibida cualquier divulgación, copia o distribución de su contenido, así como desarrollar o ejecutar cualquier tipo de acción basada en su contenido. Si Usted es el destinatario, el uso de la información que ha recibido, deberá estar limitado a la finalidad específica por la cual se le ha enviado.

El 17 nov 2021, a las 10:36, Miguel Tavares @.***> escribió:

Alfred uses this Unicode Date Format http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns. So, in your case, you want to replace the date variable in the Daily Note and Daily Journal actions with {date:YYYY-MM-dd EEEE}. Like so:

https://user-images.githubusercontent.com/687343/142175045-da778139-078d-4ed5-bce5-6ebf541df1b4.png https://user-images.githubusercontent.com/687343/142175055-757e6d1a-42e8-4806-b283-fb2af96c478d.png If everything else is set up correctly, you should be OK. Let me know if you need any further assistance.

Cheers!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20#issuecomment-971401295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD527QKMJ2IOX57FBINGLHDUMNZSZANCNFSM5IFQCA5Q.

manfrombar avatar Nov 17 '21 11:11 manfrombar

So, both Alfred and Obsidian are using the correct date format 2021-11-17 miércoles, but text isn't getting appended?

Please activate debugging mode in Alfred (the bug button on the top right of the workflow window), run the action, and send me the logs that appear in the bottom pane.

Also, if you don't mind, provide a screenshot of your Workflow Environment Variables.

We'll get this sorted.

macedotavares avatar Nov 17 '21 11:11 macedotavares

Manel Puntí Music Distribución & Algam Ibérica CEO Phone : (34) 934 221 811 Mobile : (34) 609 488 294 Skype : manel.punti1

Aviso legal: Este mensaje, incluidos sus ficheros adjuntos, contienen información confidencial, dirigida a un destinatario y con una finalidad específica protegida por la Ley. Le informamos que si Usted no es el destinatario del mismo, deberá eliminar éste mensaje, quedando estrictamente prohibida cualquier divulgación, copia o distribución de su contenido, así como desarrollar o ejecutar cualquier tipo de acción basada en su contenido. Si Usted es el destinatario, el uso de la información que ha recibido, deberá estar limitado a la finalidad específica por la cual se le ha enviado.

El 17 nov 2021, a las 12:54, Miguel Tavares @.***> escribió:

So, both Alfred and Obsidian are using the correct date format 2021-11-17 miércoles, but text isn't getting appended?

Please activate debugging mode in Alfred (the bug button on the top right of the workflow window), run the action, and send me the logs that appear in the bottom pane.

Also, if you don't mind, provide a screenshot of your Workflow Environment Variables.

We'll get this sorted.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20#issuecomment-971508708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD527QKWURZW3ANYYLARVLDUMOJXVANCNFSM5IFQCA5Q.

manfrombar avatar Nov 17 '21 11:11 manfrombar

Your reply seems to be empty. 🧐

macedotavares avatar Nov 17 '21 14:11 macedotavares

I try again (???

Manel Puntí Music Distribución & Algam Ibérica CEO Phone : (34) 934 221 811 Mobile : (34) 609 488 294 Skype : manel.punti1

Aviso legal: Este mensaje, incluidos sus ficheros adjuntos, contienen información confidencial, dirigida a un destinatario y con una finalidad específica protegida por la Ley. Le informamos que si Usted no es el destinatario del mismo, deberá eliminar éste mensaje, quedando estrictamente prohibida cualquier divulgación, copia o distribución de su contenido, así como desarrollar o ejecutar cualquier tipo de acción basada en su contenido. Si Usted es el destinatario, el uso de la información que ha recibido, deberá estar limitado a la finalidad específica por la cual se le ha enviado.

El 17 nov 2021, a las 15:04, Miguel Tavares @.***> escribió:

Your reply seems to be empty. 🧐

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20#issuecomment-971613032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD527QLRP2MXRCADSEGLPELUMOZARANCNFSM5IFQCA5Q.

manfrombar avatar Nov 17 '21 15:11 manfrombar

Hello Miguel Finally everything is workinh. I would like to ask you about the tasks.

When I am trying to insert a task using “t” nothing happens. I have no idea what I am doing wrong. Tasks file should be in Daily Note folder? I am not defining well the task_title? Can you help me? Thanks a lot in advance! Best

Manel Puntí Music Distribución & Algam Ibérica CEO Phone  : (34) 934 221 811 Mobile : (34) 609 488 294 Skype : manel.punti1

Aviso legal: La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde Music Distribucion, S.A., es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de tratamiento de Music Distribucion, S.A. y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión (“derecho al olvido”), portabilidad, oposición y revocación, en los términos que establece la normativa vigente y aplicable en materia de protección de datos, dirigiendo su petición a la dirección postal Garcilaso 11, 08027, Barcelona o bien a través de correo @.*** Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias. El 17 nov 2021 0:03 +0100, Miguel Tavares @.***>, escribió:

Sure. Give me a couple of days and I'll get back to you with a workaround.

Cheers

On Tue, 16 Nov 2021 at 22:57, manfrombar @.***> wrote:

I have defined in my Obsidian Daily notes YYYY-MM-DD dddd, that it shows 2021-11-16 Tuesday I have tried to modify the Alfred workflow to the default date format but It doesn't work. Can you help me? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/macedotavares/obsidian-utilities/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHZ32NIG7BEIYANLUIUJDUMLOUDANCNFSM5IFQCA5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

manfrombar avatar Dec 02 '21 23:12 manfrombar