warp icon indicating copy to clipboard operation
warp copied to clipboard

File viewers need search

Open mark-99 opened this issue 7 months ago • 9 comments

Pre-submit Checks

Describe the solution you'd like?

When viewing a file (markdown, source file, etc.) there should be a spyglass for searching within the file, similar to the global search tool for the whole tree. In addition ctrl-f should do a find (similar to VSCode or a web browser) rather than moving the cursor forward.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

Operating system (OS)

Linux

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

mark-99 avatar Apr 30 '26 19:04 mark-99

@mark-99

I ran into an unexpected error while working on this.

Powered by Oz

warp-for-oss[bot] avatar Apr 30 '26 19:04 warp-for-oss[bot]

The vertical "..." menu could have "Find... (ctrl+shift+f)" that would at least surface it.

mark-99 avatar Apr 30 '26 20:04 mark-99

The terminal blocks have a right click menu with "Find within block", "toggle block filter" etc. However in the file view right click does nothing - maybe it should.

mark-99 avatar Apr 30 '26 20:04 mark-99

@mark-99 It seems like your request is specifically about adding a UI element that indicates that a file is searchable, instead of relying on the implicit search keypress pattern that we currently use. Is that correct?

captainsafia avatar May 04 '26 00:05 captainsafia

Yes, turns out the keyboard shortcut works but there is no UI either as an icon or right-click menu.On 4 May 2026, at 01:42, Safia Abdalla @.***> wrote:captainsafia left a comment (warpdotdev/warp#9659) @mark-99 It seems like your request is specifically about adding a UI element that indicates that a file is searchable, instead of relying on the implicit search keypress pattern that we currently use. Is that correct?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

mark-99 avatar May 04 '26 08:05 mark-99

@mark-99

Here's what I found while triaging this issue:

Search in file viewers appears to already work from the keyboard shortcut; the remaining gap is making that capability discoverable in the UI, such as through a header/overflow entry or right-click menu.

Maintainer details

I concluded that file viewers already have keyboard-accessible find, but they lack a visible Find affordance in the local file-viewer UI..

Triage

This is an enhancement/discoverability issue for search in file viewers, not a missing search implementation. The reporter clarified that the keyboard shortcut works, but there is no visible UI affordance such as a search icon, overflow-menu item, or right-click menu entry.

Current code already wires find behavior into rich-text file/notebook viewers and code editors via the app-wide Find action. The likely implementation path is to expose the existing find action from file-viewer UI surfaces rather than creating a separate search model: app/src/notebooks/editor/view.rs:713 registers Find in Notebook, app/src/notebooks/editor/find_bar.rs owns the embedded notebook find bar, app/src/notebooks/file/mod.rs:948 starts the file-viewer overflow items without a Find item, app/src/notebooks/context_menu.rs:128 builds the shared notebook context menu without search actions, and app/src/code/editor/view/actions.rs:1097 handles right-click in code editors by only moving the cursor.

Duplicate check: I enumerated all open issues plus recently closed issues. #7897 is related to broader Markdown/file search and view-mode context, but fewer than two strong duplicate candidates matched this specific UI-affordance request, so I am not marking this as a duplicate.

This is my automated analysis and may be incorrect. A maintainer will verify the details.

Powered by Oz

warp-for-oss[bot] avatar May 04 '26 08:05 warp-for-oss[bot]

Adding this to the overflow menu for the file viewer pane seems like a reasonable approach here - marking as ready to implement.

bnavetta avatar Aug 05 '26 17:08 bnavetta

This issue has been labeled ready-to-implement and is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment @oz-agent on this issue to have the bot draft an implementation PR automatically.

warp-for-oss[bot] avatar Aug 05 '26 17:08 warp-for-oss[bot]

Hi! I’d like to take this on. I’ll follow @bnavetta’s suggested scope: expose the existing Find action in the file-viewer pane overflow menu, keep the current keyboard shortcut behavior unchanged, add focused regression coverage, and include macOS visual evidence. I’ll open a PR once the repository checks pass.

rasitakyol avatar Aug 12 '26 08:08 rasitakyol