Scite 列出所有發生

lua-users home
wiki

這篇條目沒有腳本,這是我的實作。

輸出應該像 grep 或 findstr,所以 F4『下一則訊息』應該可以正常運作。


function SciteListAllOccurances()
  if props.CurrentSelection ~= "" then
    for m in editor:match( "^.*" .. props.CurrentSelection .. ".*$", SCFIND_REGEXP, 0) do
      print(props.FileNameExt .. ":" .. (editor:LineFromPosition(m.pos)+1) .. ":" .. m.text);
    end
  else
    alert("The InternalGrep script only searchs for selected text");
  end
end
——艾波懷特,2006 年 1 月 21 日
最近變更 · 偏好設定
編輯 · 歷程記錄
上次編輯時間為 2006 年 8 月 31 日,格林威治時間晚上 8:38 (比較)