Chapter 14 · Pro modulesPro 模块Pro 模組

Project workspace项目工作区專案工作區

Opening a folder as a project, switching projects, filtering the tree, project search and replace, exclusions.把文件夹作为项目打开、多项目切换、文件树过滤、项目搜索替换与排除规则。把資料夾作為專案開啟、多專案切換、檔案樹過濾、專案搜尋取代與排除規則。

Pro

Opening a project

Choose a folder as the project root. The sidebar switches from a general file browser to a tree rooted at that folder. The choice is authorised through the sandbox panel, so it remains valid across relaunches.

Multiple projects

Several projects can stay open at once and are switched from a dropdown. Each keeps its own expanded folders, exclusion rules and search history.

Tree filter

The filter box matches file names as you type, with a 200 ms debounce so typing stays smooth on large trees. Clearing the box restores the full tree.

Context menu

  • New file, new folder.
  • Rename, delete.
  • Reveal in Finder, copy path.

Destructive operations ask for confirmation. Deleting inside a project removes the file from disk, not just from the tree.

Project search

OptionMeaning
RegexInterpret the query as a regular expression.
CaseCase-sensitive matching.
Whole wordWord-boundary matching.
File filterComma-separated globs such as *.swift or *.{ts,js}.

Results are grouped by file. The last 20 queries are persisted with duplicates removed, and exclusions keep generated or vendored directories out of the scan.

Project replace

Replace across all matched files after a confirmation dialog. Regex capture groups can be referenced as $1. Because this touches many files at once, run a search first and review the file list before replacing.

Persistence

Expanded folders, exclusion patterns and search history are saved per project. Removing a project from the list does not delete anything on disk.

Limits

There is no git integration, no symbol index and no “find usages”. Search is textual over the files that pass the filters.

Pro

打开项目

选择一个文件夹作为项目根目录,侧栏会从通用文件浏览器切换为以该文件夹为根的文件树。选择通过沙盒面板授权,重启后依然有效。

多项目

可同时打开多个项目,并通过下拉菜单切换。每个项目各自保留展开状态、排除规则与搜索历史。

文件树过滤

过滤框按文件名即时匹配,采用 200ms 防抖,让大型文件树下的输入保持顺滑。清空输入即恢复完整树。

右键菜单

  • 新建文件、新建文件夹。
  • 重命名、删除。
  • 在 Finder 中显示、复制路径。

破坏性操作会弹出确认。在项目内删除会真正从磁盘移除文件,而不只是从树里隐藏。

项目搜索

选项含义
正则把查询当作正则表达式解释。
区分大小写匹配时区分大小写。
全词匹配按词边界匹配。
文件过滤逗号分隔的通配符,如 *.swift 或 *.{ts,js}。

结果按文件分组。最近 20 条查询会被持久化并去重;排除规则可把生成目录或第三方目录挡在扫描之外。

项目替换

确认后对所有匹配文件执行替换,替换文本可用 $1 引用正则捕获组。由于一次会影响多个文件,建议先搜索、看清文件列表再替换。

持久化

展开状态、排除模式与搜索历史按项目保存。把项目从列表中移除不会删除磁盘上的任何内容。

限制

没有 git 集成、没有符号索引,也没有「查找引用」。搜索是通过过滤器的文件上的文本搜索。

Pro

開啟專案

選擇一個資料夾作為專案根目錄,側欄會從通用檔案瀏覽器切換為以該資料夾為根的檔案樹。選擇透過沙盒面板授權,重啓後依然有效。

多專案

可同時開啟多個專案,並透過下拉選單切換。每個專案各自保留展開狀態、排除規則與搜尋歷史。

檔案樹過濾

過濾框按檔案名即時匹配,採用 200ms 防抖,讓大型檔案樹下的輸入保持順滑。清空輸入即恢復完整樹。

右鍵選單

  • 新建檔案、新建資料夾。
  • 重新命名、刪除。
  • 在 Finder 中顯示、複製路徑。

破壞性操作會彈出確認。在專案內刪除會真正從磁碟移除檔案,而不只是從樹里隱藏。

專案搜尋

選項含義
正則把查詢當作正規表達式解釋。
區分大小寫匹配時區分大小寫。
全詞匹配按詞邊界匹配。
檔案過濾逗號分隔的通配符,如 *.swift 或 *.{ts,js}。

結果按檔案分組。最近 20 條查詢會被持久化並去重;排除規則可把生成目錄或第三方目錄擋在掃描之外。

專案取代

確認後對所有匹配檔案執行取代,取代文字可用 $1 引用正則捕獲組。由於一次會影響多個檔案,建議先搜尋、看清檔案列表再取代。

持久化

展開狀態、排除模式與搜尋歷史按專案儲存。把專案從列表中移除不會刪除磁碟上的任何內容。

限制

沒有 git 集成、沒有符號索引,也沒有「尋找引用」。搜尋是透過過濾器的檔案上的文字搜尋。