Fix snippets to magic words (#1148)

This commit is contained in:
George Pchelkin 2020-01-07 02:43:14 +03:00 committed by Le Tan
parent 300afd6bec
commit bba152e328

View File

@ -1,7 +1,7 @@
# Magic Word # Magic Word
**Magic Words** are some characters that have special meanings. They will be evaluated to some pre-defined characters. For one simple example, `date` could be evaluated to the date of today. **Magic Words** are some characters that have special meanings. They will be evaluated to some pre-defined characters. For one simple example, `date` could be evaluated to the date of today.
VNote support snippets in most of the input widgets. For example, you could use snippet for the note name when creating a note. VNote support magic words in most of the input widgets. For example, you could use magic word for the note name when creating a note.
`%da% work log.md` will be evaluated as `20180128 work log.md` since `%da%` is a magic word which is defined as the date of today in the form `YYYYMMDD`. `%da% work log.md` will be evaluated as `20180128 work log.md` since `%da%` is a magic word which is defined as the date of today in the form `YYYYMMDD`.
@ -43,4 +43,4 @@ Now we got two magic words `vnote` (based on another magic word `datetime`) and
![](_v_images/_1517139520_1176992512.png) ![](_v_images/_1517139520_1176992512.png)
Now in edit mode, we could hit `Ctrl+E S D` to insert current date. Now in edit mode, we could hit `Ctrl+E S D` to insert current date.