Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a field value but not display it #1164

Open
louisdecharson opened this issue May 8, 2023 · 0 comments
Open

How to set a field value but not display it #1164

louisdecharson opened this issue May 8, 2023 · 0 comments

Comments

@louisdecharson
Copy link

louisdecharson commented May 8, 2023

Hi,

I want to set a value for a field but ultimately don't display the field value, only transforming the field value in other places.
My use-case is the following: I want to choose a date from the calendar date picker and extract day, month, year in various places, but I am not interested in the raw timestamp value.
See below an example:

# -*- mode: snippet -*-
# name: journal
# key: journal
# --
#+TITLE:${1:$(format-time-string "%A, %d %B %Y" (read yas-text))}
#+KEYWORDS: ${1:`(org-read-date nil t)`},${1:$(format-time-string "%Y" (read yas-text))},${1:$(format-time-string "%B" (read yas-text))}
#+DATE: ${1:$(format-time-string "%Y-%m-%d" (read yas-text))}
# Local Variables:
# org-html-postamble: "<p id='date' class='text-muted'>${1:$(format-time-string "%Y-%m-%d" (read yas-text))}</p>"
# End:

In the example above, the timestamp is kept as the first keyword but if possible I would like to not display it. Is it possible ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant