xi-editor / xi-mac

The xi-editor mac frontend.
Apache License 2.0
3.02k stars 147 forks source link

Can't open files after accidentally trying to open a directory #424

Closed jansol closed 5 years ago

jansol commented 5 years ago

What it says on the tin. Trying to open a directory using the command line causes xi-mac to activate but seemingly do nothing. Additionally further attempts to open actual files via the command line or the GUI seem to do nothing at all.

sharaththegeek commented 5 years ago

Since Xi Editor does not have a Side Bar view like other editors (The other editors handle opening of folders on Command Line by displaying the folder in the Side Bar), I would like to hear suggestions on how we can handle this issue.

My proposal is that unless we intend to create a Side Bar in the near future, we can provide a fix by launching the Open Dialog Box of Xi Editor displaying the folder name given on Command Line. Something like this:

screenshot 2019-02-05 at 11 43 37 pm screenshot 2019-02-05 at 11 44 02 pm
jansol commented 5 years ago

A side bar is planned, but currently waiting for some bigger rewrites. This issue is not about actually handling directories, but about not being able to open anything after trying to do that.