Easy Telescope-style file finder in Zed #22581
Replies: 18 comments 19 replies
-
@baldwindavid Thanks. This works nicely, however when I open the search the lookup is done through some random files only and not all my workspace. Do you know how to configure that? |
Beta Was this translation helpful? Give feedback.
-
Thanks, this works really well! Had to change the task as so
because zed's name on linux (at least on my install) is zeditor. Really simple but might save someone a minute or two :) |
Beta Was this translation helpful? Give feedback.
-
Many thanks @baldwindavid Also adding a little something. I usually use Anywho, this worked for me. {
"context": "Terminal",
"bindings": {
// "ctrl-/": "workspace::ToggleBottomDock",
"alt-j": ["workspace::SendKeystrokes", "down"],
"alt-k": ["workspace::SendKeystrokes", "up"]
}
} |
Beta Was this translation helpful? Give feedback.
-
That's awesome, thanks. Works like a charm except the builtin terminal is a bit slow. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @baldwindavid! This is awesome. |
Beta Was this translation helpful? Give feedback.
-
Hey @baldwindavid ! Thanks for this awesome task ! I've a corner case tho that is a little bit messing with my brain. I'm on Macos, with latest zed and television. thanks ! |
Beta Was this translation helpful? Give feedback.
-
FYI: after update to zed 0.173.8, this stopped working due to #24833 |
Beta Was this translation helpful? Give feedback.
-
A custom channel that searches over open files would be nice too. But I don't think the |
Beta Was this translation helpful? Give feedback.
-
@baldwindavid hi, I looked your video and find you open a file in the same instance of zed, but I will open a new zed window, what's the problem? Is it because I'm using it under Windows? Thank you for your provide anyway |
Beta Was this translation helpful? Give feedback.
-
It's working good with local development, but seem like it can't open the file when using SSH remote development mode. |
Beta Was this translation helpful? Give feedback.
-
another {
"label": "Live Grep",
"command": "tv text --no-remote --no-help --tick-rate 120 | read -alz res; and zed $res",
"hide": "always",
"allow_concurrent_runs": false,
"use_new_terminal": false,
"shell": {
"with_arguments": {
"program": "fish",
"args": ["--no-config"]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Television allows selecting multiple files (using tab to toggle), so
EDIT: Added Note: On macs, the default |
Beta Was this translation helpful? Give feedback.
-
This doesn't open the file in zed once i select it (maybe because it's opened in another tab?). Is there something i could try or logs I can look at to see what went wrong? |
Beta Was this translation helpful? Give feedback.
-
how to ignore node_module or full gitignore files |
Beta Was this translation helpful? Give feedback.
-
This seems to work great except when i select the file, it pops out in an entirely new zed instance and not as a new tab as i would of expected |
Beta Was this translation helpful? Give feedback.
-
When I ESC on television finder it opens an empty file outside the project context. Is there a way to configure it so in such case it will go back to the file that was opened? |
Beta Was this translation helpful? Give feedback.
-
Thank you @baldwindavid! This discussion inspired me to look into this style more deeply. I found that preferred the bat and fzf combo to television. The results are in a new discussion here: #38606 |
Beta Was this translation helpful? Give feedback.
-
Great guide! Things that helped me that wasn't documented in the discussion post:
This is what I adapted the suggestion to for "find in files" in tasks.json: [
{
"label": "tv:find-in-files",
"command": "zed \"$(tv --input '${ZED_SELECTED_TEXT:-}' --exact text)\"",
"hide": "always",
"allow_concurrent_runs": true,
"use_new_terminal": true
}
] (actually I use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There's a been a lot of discussion about telescope-style search in #8279. There's some good workarounds/ideas there, but just posting a drop-in setup that leverages television, a task, and keybinding.
1. Install television
2. Add a task for a file finder
tasks.json
3. Add keybinding to open file finder in center terminal
keymap.json
This should result in an interaction similar to...
2025-01-02T184704.mp4
Searching file contents
Television can search just about anything so, for example, file contents could also be searched with the
text
channel.Beta Was this translation helpful? Give feedback.
All reactions