-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
* @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
@splitbrain could you please resolve the merge conflict ? |
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) |
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. |
Hi @dregad, any progress? |
Got sidetracked and never got around to finalizing those tests 🤷 |
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. |
Replaced by #102 |
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)
@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 thefoo
namespace. This makes Add alternative syntax to add entire namespace #70 obsolete?
syntax allows to overwrite config options from the syntax (defaults still come from the config setting) Example:{{NEWPAGE>foo:bar?nohide}}
overwrites the defaulthide
setting.{{NEWPAGE>projekt:notes:%Y-%m-%d}}
{{NEWPAGE>journal:%Y-%m-%d?noautopage}}
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.