Javascriptã§æ¡å¼µã§ããã®ãObsidianã®ããã¨ããã
Templater
æè¿ã®ãã¼ã¸ã§ã³ã¢ããã§Templaterã®ã¢ã¤ã³ã³ãCommanderã§å¤æ´ãããã¨ãã§ããªããªãã¾ããã æã®æ¹æ³ã§ãã¼ã«ãã¼ã«è¼ãããã¨ãã§ããªãã
ã¨ãããã¨ã§ããã§ã«æ¸ãã¦ã¾ãããå¥ã®æ¹æ³ãæ¡ç¨ãã¾ãã
linecopy.md
ãã¨ãã°è¡ã®è¤è£½ãä½ãã¹ã¯ãªããã
<%* e = app.workspace.activeLeaf.view.editor p = e.getCursor().line s = e.getLine(p) e.setCursor(p) tp.file.cursor_append(`\n${s}`) %>
Templaterã®hotkeysã«ç»é²ããã¾ã§ã¯åãã§ãã ãã¹ã¯ããããªãã·ã§ã¼ãã«ãããã¼ãè¨å®ããã°çµããã
ã¢ãã¤ã«ã¯ãã¼ã«ãã¼ã®ç»é²ã«ããä¸è¦å´ããã¾ãã
Commander
Commanderãã©ã°ã¤ã³ã®MacrosãéããAdd Macroããã¿ããã
ã+ ADD COMMANDãã§ãTemplater: Insert Template/linecopy.mdããé¸ãã§Saveãã¾ãã ãã¯ãåããlinecopyãã¨ãã¦ããã¨ããã§ãããã
ãã¯ãåããã¨ã¢ãã¤ã«ãã¼ã«ãã¼ã®ãã°ãã¼ãã«ã³ãã³ãã追å ãã§ãCommander: linecopyããé¸ã¹ã¾ãã ããã§è¨å®ããã¨Commanderã®Mobile Toolbarã§ã¢ã¤ã³ã³ãè¨å®ã§ããããã«ãªãã¾ãã
ãã¤ãããã¾ã§ããã
ã¾ã¨ã
codeMirrorã使ãããã¡ãã£ã¨é«ç´ãªããã¯ãã¼ã¯ã¬ããã