Closed chuan2984 closed 6 months ago
Hi! 😄
The paths I have in the demo comes from the zoxide query -l
command which shows you the paths which zoxide has "saved". So it should show the same paths as the ones you have when you run the command in your terminal.
Tabs are handled by Wezterm and should persist for a workspace "session" the default keybinds to open a tab in Wezterm is CTRL+SHIFT + t
If you want to change the default keybindings, then you should replace the line:
workspace_switcher.apply_to_config(config)
With the following lines as per the readme
config.keys = {
-- ...
-- your other keybindings
{
key = "s", -- whatever key you want
mods = "ALT", -- whatever modifier you like
action = workspace_switcher.switch_workspace(),
}
}
Hope this helps, otherwise feel free to make follow up questions
.switch_workspace()
, I only see he paths and the workspaces but not the tabs inside the workspaces. I would like to be able to jump to a tab directly inside a workspace. For example, I have a dotfile workspace, and have a tab named nvim, another named wezterm. I now only can pick dotfile(workspace) but not which tab it would open with. It'd be nice to be able to jump to an existing tab directly2: I'm a bit confused as to what you are looking for here 😃
Do you want to be able to pick a workspace using the fuzzy finder and then pick which tab to open in the workspace?
If this is the case, then would i would think having a keybind like ALT-1
for tab 1 would be the way to go
or do you want to pick a tab within a workspace using the fuzzy finder? If this is more what you are looking for, then it might be possible to do so, but it would also clutter the fuzzy finding list as you would have n copies of the paths if you have n tabs
or is it something completely different? If so, then try and walk me though how you would like to use it
3:
If you dont want the default keybindings, then you can just remove the workspace_switcher.apply_to_config(config)
line from your config, as the only thing it does is add the default keybinding.
If you dont want the default keybindings, then you can just remove the workspace_switcher.apply_to_config(config) line from your config, as the only thing it does is add the default keybinding.
thanks for the quick response.
I didn't realize that apply_to_config(config) only does keybinding, but it might still be a good idea to have a way to disable default keybindings in the future in case you add more default configs to .apply_to_config
.
or do you want to pick a tab within a workspace using the fuzzy finder? If this is more what you are looking for, then it might be possible to do so, but it would also clutter the fuzzy finding list as you would have n copies of the paths if you have n tabs
Yeah, this is pretty close to what I had in mind. As I'm starting to use it more and more, I feel like it would be great to have something like, if the path exists already in a tab, take me there as opposed to creating a new workspace set to that path. Or have a list of Aworkspace, Bworkspace, Cworkspace, Atab, Btab, Ctab, Dtab, then the zoxide query paths. I haven't thought this out too much, I might play around a bit and see what I can add. I don't know how to extract this so that it can fit other people's workflows. I probably need to checkout Sesh a bit more to see how Josh handles it
Sorry for the very late response, I have been busy with exams... :sweat_smile:
The paths are for workspaces and for panes. I don't think there is a way to define a path for a tab, so what you are suggesting might be a bit hard with the way Wezterm configures the paths. You are however welcome to make a PR or try and work something out!
If you have used Sesh a bit more and have a suggestion for something to add, then I would love to hear it in a separate issue, but I am closing this one as for now if there are not any specific requests :smile:
Hello there, I went looking for this once I saw SESH. I'm glad it exists. I have configured it, and only see workspaces. I have a few questions hoping you can answer: