zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.33k stars 644 forks source link

Copy/Paste without using mouse and new panes on pwd? #2010

Closed favetelinguis closed 1 year ago

favetelinguis commented 1 year ago

Coming from tmux the one thing I have not been able to understand reading the docs and trying out zellij is how copy paste work? In tmux I have setup using y/p to copy paste to the clipboard and im able to navigate inside panes in something similar to vim visual model. However so far its my understanding that the only way to copy paste in zellij is to hightlight some selection using the the mouse and then copy paste using whatever the OS uses for copy paste? Just want to clarify this so that im not missing anything? If im correct are there any plans to include copy paste in for example search mode? Would be cool to be able to search and then do for example y2w to copy 2 words from the current search result.

UPDATE: Another thing I noticed while playing around was that opening new panes does not inherit the current pane pwd. Is there a way to fix this? For example im woring in Helix in one pane and want to do some quick command and I then open a floating pane and I would like that to have the same pwd as im working in?

favetelinguis commented 1 year ago

Looks like the way to do copy/paste without mouse is to put the scrollback into my editor and then do all the navigating there. I do think this is a very nice approach compared to tmux very limited alternative. Also saw the follow PR which might be related to my second question https://github.com/zellij-org/zellij/pull/1992?

favetelinguis commented 1 year ago

Realised this should not be a github issue, i will take it in the chat instead.