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

Parametric page name and other changes #72

Closed
wants to merge 6 commits into from

Conversation

splitbrain
Copy link
Contributor

  • a new @INPUT@ placeholder can be used to reference the given input in namespace setup. For example you could use something like {{NEWPAGE>foo:@INPUT@:start}} to let users create new namespaces inside the foo namespace. This makes Add alternative syntax to add entire namespace #70 obsolete
  • a new ? syntax allows to overwrite config options from the syntax (defaults still come from the config setting) Example: {{NEWPAGE>foo:bar?nohide}} overwrites the default hide setting.
  • support for strftime placeholders in the namespace config. Allows to create a daily page for example. Example: {{NEWPAGE>projekt:notes:%Y-%m-%d}}
  • New option autopage which hides the input field. Together with the new date placeholder this allows to create a daily page on a single button click. Example: {{NEWPAGE>journal:%Y-%m-%d?noautopage}}
  • This PR includes the changes of Always use id of main page in replacements #71

I tried not to break any existing functionality, but without tests it's hard to tell. Unfortunately my time/budget did not allow for adding tests.

micgro42 and others added 6 commits April 11, 2017 14:13
* @input@ placeholder can be used to reference the given input (useful
  to create a new namespace) makes dregad#70 obsolete
* new ? syntax to overwrite config options from the syntax (defaults
  still come from the config setting)
* support for strftime placeholders in the namespace config. Allows to
  create a daily page for example
* New option autopage which hides the input field. Together with the new
  date placeholder this allows to create a daily page on a single button
  click
Options are not used after the handler step, so no need to assign them
to the class member.
This should also catch copy'n'paste actions.

https://caniuse.com/#feat=input-event
@dregad
Copy link
Owner

dregad commented May 7, 2023

@splitbrain could you please resolve the merge conflict ?

@splitbrain
Copy link
Contributor Author

sorry I will probably not have the time to look into this. (this was paid work at $dayjob and I don't use this plugin)

@dregad
Copy link
Owner

dregad commented Sep 24, 2023

I have resolved the merge conflicts for this and already updated the documentation. Some more testing is needed, before I push the changes and release a new version of the plugin. Expected sometime this week.

@WetenSchaap
Copy link

Hi @dregad, any progress?

@dregad
Copy link
Owner

dregad commented Oct 28, 2023

Got sidetracked and never got around to finalizing those tests 🤷

@bhartshorn
Copy link

I went to use these features according to the docs and I was surprised to find they didn't work. Thanks for your work, @dregad. I won't nag you more about merging this, but consider me another user who would like these features.

@dregad
Copy link
Owner

dregad commented Sep 14, 2024

Replaced by #102

@dregad dregad closed this Sep 14, 2024
dregad added a commit that referenced this pull request Nov 16, 2024
Merge pull request #102 from dregad/pr72.

This is @splitbrain's original contribution (see PR #72), with merge
conflicts resolved and some additional code cleanup and fixes, including
French translation.

* a new `@INPUT@` placeholder can be used to reference the given input
  in namespace setup. For example you could use something like
  `{{NEWPAGE>foo:@input@:start}}` to let users create new namespaces
  inside the `foo` namespace. This makes #70 obsolete
* a new `?` syntax allows to overwrite config options from the syntax
  (defaults still come from the config setting). Example:
  `{{NEWPAGE>foo:bar?nohide}}` overwrites the default `hide` setting.
* support for strftime placeholders in the namespace config. Allows to
  create a daily page for example. Example:
  `{{NEWPAGE>projekt:notes:%Y-%m-%d}}`
* New option autopage which hides the input field. Together with the new
  date placeholder this allows to create a daily page on a single button
  click. Example: `{{NEWPAGE>journal:%Y-%m-%d?noautopage}}`
* Includes changes of #71 (always use id of main page in replacements)
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

Successfully merging this pull request may close these issues.

5 participants