closebuf.em
来自「source insight的EM文件 可以扩展SI的宏功能」· EM 代码 · 共 43 行
EM
43 行
/* C L O S E N O N D I R T Y */
/*-------------------------------------------------------------------------
Close all non-dirty file windows
-------------------------------------------------------------------------*/
macro CloseNonDirty()
{
hwnd = GetCurrentWnd()
while (hwnd != 0)
{
hwndNext = GetNextWnd(hwnd)
hbuf = GetWndBuf(hwnd)
if (!IsBufDirty(hbuf))
CloseBuf(hbuf)
hwnd = hwndNext
}
}
/* C L O S E _ O T H E R S _ W I N D O W S */
/*-------------------------------------------------------------------------
Close all but the current window. Leaves any other dirty
file windows open too.
-------------------------------------------------------------------------*/
macro Close_Others_Windows()
{
hCur = GetCurrentWnd();
hNext = GetNextWnd(hCur);
while (hNext != 0 && hCur != hNext)
{
hT = GetNextWnd(hNext);
hbuf = GetWndBuf(hNext);
if (!IsBufDirty(hbuf))
CloseBuf(hbuf)
hNext = hT;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?