fork-dev / Tracker

Bug and issue tracker for Fork for Mac
494 stars 12 forks source link

Fork CLI: `fork log [path]` doesn't open [path] in file history #2023

Open kory-smith opened 7 months ago

kory-smith commented 7 months ago

According to fork --help, fork log [path] should open the file history of [path] in Fork.

I interpret that to mean that fork log /Users/kory/Gits/korysmith.dev/package.json should bring up this view:

image

Instead, it just opens Fork.

My Environment Info

  System:
    OS: macOS 13.6.1
    CPU: (8) arm64 Apple M2
    Memory: 406.50 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh

Fork version 2.36.2
Fork CLI version 4
DanPristupov commented 7 months ago

I think you missed --.

Try fork log -- /Users/kory/Gits/korysmith.dev/package.json

According to fork --help, fork log [path] should open the file history of [path] in Fork.

Is just checked, it says fork log [--path].

Screenshot 2023-11-29 at 22 06 36
kory-smith commented 7 months ago

I think you missed --.

Try fork log -- /Users/kory/Gits/korysmith.dev/package.json

According to fork --help, fork log [path] should open the file history of [path] in Fork.

Is just checked, it says fork log [--path].

Screenshot 2023-11-29 at 22 06 36

Woah, you're totally right! Don't know how I missed that. Yes, fork log -- /Users/kory/Gits/korysmith.dev/package.json works!

While we're here, one thing worth mentioning. fork log -- [path] works as expected when Fork is already open. But when Fork isn't already open, it just opens Fork. Not sure if that's intentional.

`fork log [-- path] when Fork is not already open

2023-11-29 16 15 08

`fork log [-- path] when Fork is already open

2023-11-29 16 15 43

DanPristupov commented 7 months ago

However, I noticed that it only works if there is a Fork instance running.