gpt4 book ai didi

far - 如何在 Far Manager 中跳过通过掩码搜索目录

转载 作者:行者123 更新时间:2023-12-05 03:33:47 25 4
gpt4 key购买 nike

我有带嵌套子模块的 Git 存储库。他们都有 .git 文件夹。我想忽略这些 git 文件夹来搜索文件,因为这比没有它们要花费更多的时间。

我曾尝试使用过滤器 (Alt+F7),但它不起作用或我做错了。

最佳答案

我有同样的问题(https://forum.farmanager.com/viewtopic.php?p=150995)。

分步解决方案:

  • 启用[x]使用过滤器

╔══════════════════════════════ Find file ═══════════════════════════════╗
║ A file mask or several file masks: ║
║ *.* ↓║
╟────────────────────────────────────────────────────────────────────────╢
║ Containing text: ║
║ ↓║
║ Using code page: ║
║ Automatic detection ↓║
╟───────────────────────────────────┬────────────────────────────────────╢
║ [ ] Case sensitive │ [ ] Search in archives ║
║ [ ] Whole words │ [x] Search for folders ║
║ [ ] Search for hex │ [x] Search in symbolic links ║
║ [ ] Not containing │ [ ] Search in alternate streams ║
╟───────────────────────────────────┴────────────────────────────────────╢
║ Select search area: ║
║ From the current folder ↓ [x] Use filter ║
╟────────────────────────────────────────────────────────────────────────╢
║ { Find } [ Drive ] [ Filter ] [ Advanced ] [ Cancel ] ║
╚════════════════════════════════════════════════════════════════════════╝
  • 添加过滤器(选择Filter,按Insert)
    • 为过滤器命名(例如 Git 文件夹)
    • 作为掩码集 .git
    • 对于属性集[x]目录

╔════════ Attributes ════════╗
║ [?] Read only ║
╔══════════════════ ║ [?] Archive ║ ══════════════════╗
║ A file mask or se ║ [?] Hidden ║ ║
║ [?] System ║
╔══════════════════ ║ [?] Compressed ║ ══════════════════╗
║ Name: Git folder ║ [?] Encrypted ║ ↓║
╟────────────────── ║ [?] Not indexed ║ ──────────────────╢
║ [x] Mask: .git ║ [x] Directory ║ ↓║
╟────────────────── ║ [?] Sparse ║ ──────────────────╢
║ [ ] Size: ║ [?] Temporary ║ [ Blank ] ║
║ >= ║ [?] Offline ║ 00:00:00,000+0000 ║
║ <= ║ [?] Reparse point ║ 00:00:00,000+0000 ║
╟────────────────── ║ [?] Virtual ║ ──────────────────╢
║ [x] Attributes [ ║ [?] Integrity stream ║ one hardlink ║
╟────────────────── ║ [?] No scrub data ║ ──────────────────╢
║ ║ [?] Pinned ║ ║
╚══════════════════ ║ [?] Unpinned ║ ══════════════════╝
║ [?] Recall on open ║
║ { Find } ║ [?] Recall on data access ║ Cancel ] ║
╚══════════════════ ║ [?] Strictly sequential ║ ══════════════════╝
╟────────────────────────────╢
║ { OK } [ Cancel ] ║
╚════════════════════════════╝
  • 点击{ OK } 创建过滤器
  • 确保选择过滤器并按- 以使用过滤器排除符合过滤器的文件/目录。 - 出现在过滤器名称之前。(F1 如果您需要更多信息)

╔═══════════════════════ Filters menu ═══════════════════════╗
║- Git folder │ +D ... │ .git ║
╟────────────────────────┼─────────────────┼─────────────────╢
║ 0. Folders │ +D ... │ ║
╚═ +,-,Space,I,X,BS,Shift+BS,Ins,Del,F4,F5,Ctrl+Up,Ctrl+Dn ══╝
  • 测试新过滤器
  • 确保保存配置(Shift+F9)

来自链接帖子的 Yegor 过滤器:

╔═══════════════════════════════════ Filters menu ════════════════════════════════════╗
║- Visual Studio Build F │ ..............D+.............. ... │ obj,bin ║
║ Temporary Files │ ..............D-.............. ... │ <bak> ║
║- NuGet and NodeJs Pack │ ..............D+.............. ... │ packages,node_modules ║
║- Source Repositories │ ..............D+.............. ... │ .svn,.hg,.git ║
╟────────────────────────┼────────────────────────────────────┼───────────────────────╢
║ 0. Folders │ ..............D+.............. ... │ ║
║ 1. Panel file type │ ..............D-.............. ... │ *. ║
║ 2. Panel file type │ ..............D-.............. ... │ *.7z ║
║ 3. Panel file type │ ..............D-.............. ... │ *.jpg ║
║ 4. Panel file type │ ..............D-.............. ... │ *.mp4 ║
║ 5. Panel file type │ ..............D-.............. ... │ *.pdf ║
║ 6. Panel file type │ ..............D-.............. ... │ *.xlsx ║
║ 7. Panel file type │ ..............D-.............. ... │ *.zip ║
╚══════════════ +,-,Space,I,X,BS,Shift+BS,Ins,Del,F4,F5,Ctrl+Up,Ctrl+Dn ══════════════╝

关于far - 如何在 Far Manager 中跳过通过掩码搜索目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70292536/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com