mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

Treat original and symlinked folder the same way

Open aik099 opened this issue 10 months ago • 2 comments

Use case:

  1. the /home folder is a symlink to a /mnt/UserData/home folder (mounted from another disk)
  2. sometimes I access the folder doing cd /home/username and sometimes doing cd /mnt/UserData/home/username
  3. mcfly is seeing them as 2 different folders and keeping separate command histories for both

Suggestion:

This is good in general, but in case of symlinks I suggest tracking history based on a path where symlink resolves into.

aik099 avatar Feb 14 '25 08:02 aik099

Seems reasonable, but might be hard in practice. Happy to accept PRs around this.

cantino avatar Feb 17 '25 18:02 cantino

Ah, maybe I've overcomplicated things. What I was actually doing:

  1. accessing the VM via OS's SSH Client > going to the /home/username/folder folder > executing my commands;
  2. accessing the VM via PhpStorm's SSH Client, which was automatically going to the /mnt/UserData/home/username/folder folder automatically > executing my commands.

Now I've found the way how to teach PhpStorm to automatically go to the /home/username/folder folder and McFly is picking up the correct history automatically. So for me this isn't a problem anymore.

If you'd like, you can close this ticket now. If somebody has the same problem, then they could use that solution as well.

aik099 avatar Feb 17 '25 21:02 aik099