ã¾ã¨ãã¾ãã
è£å®ãªã¹ãã¨ãã«ãã©ã¤ã³echoã® ä¿å®ã 大å¤ãªãã¨ããã£ã¦ã¾ã¨ãã¾ããã
ãã¨ã大åãã£ããããã¾ããã
- tooltip ã¢ã¼ããå»æ¢
- useDummyAction ã å»æ¢(anekosãããããã£ã¨è¯ãæ¹æ³ãæãã¦ããã ãã¾ãã)
- useResize ã å»æ¢ delayResize ã è² ã®å¤ã§ç¡å¹ã«å¤æ´
- useWinGlass ã å»æ¢(ã¹ã¿ã¤ã«ã·ã¼ãã§å¤æ´ãã¦ä¸ãã)
- 表示æ¹æ³ãå ±éå
- ã¢ã³ã«ã¼ã®ã¯ãªãã¯ãæ«å®å®è£
- standard(ããã©ã«ã0)ã追å (å¾è¿°)
- pMode(ããã©ã«ã BOTH)ã追å (å¾è¿°)
standard
nokturnalmortum ãããã ææããã£ãã®ã§ã
0 ã§ ä¸¡æ¹ éãªã£ã¦è¡¨ç¤º
1 㧠2.3 ã£ã½ã表示
ã¨ãªãããã«å¤æ´ãã¾ããã
pMode
PANEL_MODE.MULTILINE 㧠ãã«ãã©ã¤ã³echo ã®ã¿ 対象
PANEL_MODE.COMPLETE 㧠è£å®ãªã¹ã ã®ã¿ 対象
PANEL_MODE.BOTH ã§ ä¸¡æ¹ å¯¾è±¡
åé¡
- ãã¼ãä¸æãåããªããã¨ãããã¿ããã§ã(åç¾æé ãããã¨ãããããã§ã)
- ã¢ã³ã«ã¼ã®ããã«ã¯ãªãã¯ã使ããªã
- ã¢ã³ã«ã¼ã¯ãªãã¯ã§å°ããã©ã¼ã«ã¹ã®å¥ªãåããã
ãªããæ¿ãããã©ã¼ã«ã¹ã®å¥ªãåãã¯
80è¡ç®(e.blur())ãåé¤ãã¦
:tabopen a
:tabopen b
:buffer
㧠ä¸ãã 1ã¤ã¥ã¤é ã«ã¢ã³ã«ã¼ãã¯ãªãã¯ããã¨ç¢ºèªã§ããã¨æãã¾ãã
// vim: set fdm=marker : (function(){ const PANEL_MODE={ MULTILINE : 1, COMPLETE : 2, BOTH : 3 }; const useOpacity = 1; const standard = 0; const pMode = PANEL_MODE.BOTH; const minHeight = "1em"; const delayResize = 100; const sid = "liberator-statusline"; const className = "liberator-overlay-container"; //{{{ style sheet const fboxStyle = liberator.globalVariables.overlayStyle || <> -moz-appearance:none; background:rgba(0,0,0,0.2); -moz-border-radius: 8px; padding:0.5em; border:none; </>; // WinGlass //<> // background: transparent; // -moz-appearance: -moz-win-glass; // -moz-border-radius: 8px; // padding:0.5em; // border:none; //</> const iframeStyle = liberator.globalVariables.overlayIframeStyle || <> {useOpacity ? <>opacity:0.85;</>:""} border:none; min-height:{minHeight}; </>; //}}} function oneEventListenr(obj, event, usecapture, func){ let args = [event, function(){ this.removeEventListener.apply(this, args); func.apply(this, arguments); },usecapture]; obj.addEventListener.apply(obj,args); } function OverlayPanel(id, initFunc){ let iframe = document.getElementById(id); let vbox = iframe.parentNode; let fbox; if(standard) fbox = document.querySelector(<>.{className}</>); if(!fbox){ fbox = document.createElement("panel"); fbox.setAttribute("noautohide", true); fbox.setAttribute("style", fboxStyle); fbox.classList.add(className); fbox.addEventListener("popupshown", function(){ modes.remove(modes.MENU); },false); vbox.parentNode.insertBefore(fbox, vbox); } vbox.removeChild(iframe); const url = iframe.getAttribute("src"); const onclick = iframe.getAttribute("onclick"); iframe = document.createElementNS(XHTML,"iframe"); iframe.setAttribute("id", id); iframe.setAttribute("style", iframeStyle); iframe.setAttribute("flex",1); iframe.setAttribute("onclick", <> var e = liberator.focus; if(e.ownerDocument === this.contentDocument) e.blur(); {onclick}; </>); vbox.appendChild(iframe); fbox.appendChild(vbox); let activeTimer = 0; function updateCollapsed(newValue){ try{ if(newValue) fbox.hidePopup(); else{ if(fbox.state === "open") return; activeTimer && window.clearTimeout(activeTimer); activeTimer = window.setTimeout(function(){ activeTimer = 0; fbox.sizeTo(window.innerWidth, -1); fbox.openPopup(document.getElementById(sid), "before_start", 0, 0, false, false); },0); } }catch(ex){liberator.echoerr(ex);} return newValue; } vbox.watch("collapsed",function(id, oldValue, newValue) updateCollapsed(newValue)); oneEventListenr(iframe,"load",true,function(){ initFunc(id,fbox,vbox,iframe); }); oneEventListenr(fbox,"popupshown",false,function(){ this.hidePopup(); }); fbox.openPopupAtScreen(0,0,false); if(delayResize >= 0){ if(!("activeTimer" in fbox)) fbox.activeTimer = 0; window.addEventListener("resize",function resize(event){ if(vbox.collapsed) return; fbox.activeTimer&&window.clearTimeout(fbox.activeTimer); fbox.activeTimer = window.setTimeout(function(){ fbox.activeTimer = 0; if(fbox.width == window.innerWidth) return; vbox.collapsed = true; vbox.collapsed = false; },delayResize); },false); } iframe.setAttribute("src",url); } if(pMode&PANEL_MODE.MULTILINE) OverlayPanel("liberator-multiline-output",function(id,fbox,vbox,iframe){ commandline._multilineOutputWidget = iframe; commandline._outputContainer = vbox; iframe.contentDocument.body.setAttribute("id", "liberator-multiline-output-content"); }); if(pMode&PANEL_MODE.COMPLETE) OverlayPanel("liberator-completions",function(id,fbox,vbox,iframe){ commandline._completionList = ItemList(id); }); })(this);
2010/05/12 00:07
ããã¿ãããstandardã®ããã©ã«ãã0ã§ããâ¦