Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start search on the current pane cwd location #14

Open
fungos opened this issue Feb 5, 2024 · 4 comments
Open

Start search on the current pane cwd location #14

fungos opened this issue Feb 5, 2024 · 4 comments

Comments

@fungos
Copy link

fungos commented Feb 5, 2024

If I have 3 panes, each with a different directory set with cwd, when I start monocle to search, it seems to be using only the last cwd in my layout file. Even if I change pane, it will keep the last cwd as the search path.
Ideally, it would be able to use the last focused pane's cwd.

@ErwonB
Copy link

ErwonB commented Apr 25, 2024

Any workaround to use the cwd of the current pane ?

@imsnif
Copy link
Owner

imsnif commented Apr 25, 2024

Hey umm... isn't this already how it is in the latest Zellij and the latest Monocle? That's how it works for me...

@ErwonB
Copy link

ErwonB commented Apr 25, 2024

For me, it's always using the directory from where I started the zellij session.
I'm using zellij 0.40.0 and the latest monocle.wasm

Edit : I think I got it, I wasn't closing the monocle floating pane so it didn't refresh with the new cwd

@Adda0
Copy link

Adda0 commented Nov 3, 2024

Edit : I think I got it, I wasn't closing the monocle floating pane so it didn't refresh with the new cwd

This issue I have with this is that one has to constantly close the existing floating pane when switching between directories.

I would like to be able to open a floating pane with Monocle (helps me focus on the search better, and fixes the issue that when --in-place is used on a small pane, the Monocle window does scroll to show all matches), search for a file and open the file in a new embedded pane and switch focus to that pane, and automatically close the floating pane with the Monocle plugin running. This would allow to afterwards switch to another directory, and repeat, without having to close the running Monocle instance. I basically need something like --close-after-search flag.

@imsnif Am I right that this use case is currently not possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants