lazycli icon indicating copy to clipboard operation
lazycli copied to clipboard

u option (cd) does not appear to do anything

Open anvandaren opened this issue 4 years ago • 1 comments

Hi,

Just installed lazycli on Ubuntu 18.04 and tried it with ls -l. The u option does not appear to do anything. Is the intention to change directory of the terminal that is running lazycli?

Thanks!

anvandaren avatar Oct 29 '21 06:10 anvandaren

I noticed that as well. I think it's because the "current" or "working" directory is a per-process parameter, and a process can only change its own working directory. In order to take care of that one option I can see is to have the command activated by 'u' also write to some file and then wrap lazycli with additional shell function that would change directory if that file exist and erase the file. I've seen a similar "trick" done with ranger file manager.

yanshay avatar Apr 22 '22 16:04 yanshay