| obsidianUIMode | created | modified | tags | aliases | ||
|---|---|---|---|---|---|---|
source |
2021-10-18 00:17:00 -0700 |
2021-11-07 20:45:41 |
|
%%
| ;; Scripts for obsidian.md | |
| ;; http://jdev.tw/blog | |
| ;; v0.1 2020/07/02 jerry | |
| #SingleInstance Force | |
| :O*:d0:: | |
| ;; 0409 language code for USA | |
| FormatTime, vToday,L0x0409, yyyy-MM-dd_ddd | |
| send [[%vToday%]] | |
| return |
| -- When you press F2, the command prompt asks you to type a character. | |
| -- It then copies the previous command up to (but not including) that character. | |
| nyagos.key.f2 = function(this) | |
| local _sCmdLine = this.text; | |
| if (this.pos > 1) then | |
| this:call("BEGINNING_OF_LINE") | |
| end | |
| nyagos.write("\nEnter char to copy up to: ") | |
| local _sKey=nyagos.getkeys() | |
| nyagos.write("\r\027[K\027[A") |
| local stringify = (require "pandoc.utils").stringify | |
| function BlockQuote (el) | |
| start = el.content[1] | |
| if (start.t == "Para" and start.content[1].t == "Str" and | |
| start.content[1].text:match("^%[!%w+%][-+]?$")) then | |
| _, _, ctype = start.content[1].text:find("%[!(%w+)%]") | |
| el.content:remove(1) | |
| start.content:remove(1) | |
| div = pandoc.Div(el.content, {class = "callout"}) |
| obsidianUIMode | created | modified | tags | aliases | ||
|---|---|---|---|---|---|---|
source |
2021-10-18 00:17:00 -0700 |
2021-11-07 20:45:41 |
|
%%
| --- | |
| created: <% tp.date.now("YYYY-MM-DD HH:mm") %> | |
| modified: | |
| aliases: [<% tp.file.title %>] | |
| mood: {{VALUE:😃,😡,😭,😁}} | |
| weather: "<% tp.user.天氣_台北市() %>" | |
| tags: [ daily ] | |
| --- | |
| # <% tp.file.title %> |
| #SingleInstance Force | |
| !1:: | |
| SetDefaultKeyboard(0x0409) ;; 切換為英文輸入 | |
| return | |
| !2:: | |
| SetDefaultKeyboard(0x0404) ;; 切換為中文輸入 | |
| return |
| ```js quickadd | |
| selection = window.getSelection(); | |
| selText = selection.toString() | |
| console.log("selection", selText); | |
| const activeFile = this.app.workspace.getActiveFile(); | |
| if (!activeFile) { | |
| new Notice("No active file", 5000); | |
| return; | |
| } | |
| console.log("active file=", activeFile); |
| #SingleInstance Force | |
| f1:: | |
| url := "http://localhost:8765" | |
| httpClient := ComObjCreate("WinHttp.WinHttpRequest.5.1") | |
| httpClient.Open("POST", url, false) | |
| ;httpClient.SetRequestHeader("User-Agent", User-Agent) | |
| ;httpClient.SetRequestHeader("Content-Type", Content-Type) | |
| ;httpClient.SetRequestHeader("Cookie", Cookie) |
aliases: Markdown Tutorial, Obs 82 obsidianUIMode: source tags: 專案筆記, obsidian, markdown AutoNoteMover: disable disabled rules: [] created: "2022-04-04 14:53:25" modified: "2022-05-02 19:43:33" cssClasses: table-lines, row-alt blog: http://jdev.tw/blog/7066/