发布

  • feat(nvim): resume last picker (#405) (#438)

    frostbyte_neo 发布于 2026-06-14 18:15:38 +00:00

    • feat: resume last picker in refactored picker_ui structure

    Add ability to resume the last closed picker with full state (query,
    results, cursor, mode) by adapting for the refactored module structure.

    In the coordinator (picker_ui.lua):

    • save_state_and_close() deep-copies picker state before closing
    • restore_from_state() recreates UI from saved snapshot
    • M.close() overrides the wired close to save state then call close_windows
    • M.resume(), M.resume_find_files(), M.resume_live_grep() public API
    • Per-mode saved state (find_files vs live_grep)

    In layout_manager.lua:

    • Extracted close_windows() as the low-level cleanup
    • close() now delegates to close_windows()

    In main.lua:

    • find_files and live_grep support opts.resume
    • M.resume() public API for :FFFResume command

    plugin/fff.lua:

    • :FFFResume user command
    • chore: update

    • chore: fix lint

    • chore: rename func

    下载附件