Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant enable sidebar - file pane #1717

Closed
Fischmuetze opened this issue Sep 18, 2024 · 9 comments
Closed

Cant enable sidebar - file pane #1717

Fischmuetze opened this issue Sep 18, 2024 · 9 comments
Labels
invalid potential bug issues not yet tested

Comments

@Fischmuetze
Copy link

Description

Cant enable sidebar file browser. .. both menu entries for the sidebar are always greyed out
No idea how to enable ... if there is a way its far away from intuitive

To Reproduce

Start the app, open a file .. try to enable the sidebar

Expected behavior

No response

CotEditor version

5.0.0

macOS version

macOS Sonoma 17.4 (23H124)

Additional context

No response

@Fischmuetze Fischmuetze added the potential bug issues not yet tested label Sep 18, 2024
@Fischmuetze
Copy link
Author

Fischmuetze commented Sep 18, 2024

ok got it ... click on a folder in the open dialog will enable the sidebar, but this is a very, very strange idea.
The standard macOS behaviour for selecting an folder and click on the the open button will dive the dialog browser into the selected directory. This is NOT a macOS standard conform behaviour and far away from intuitive ... :(
The reason why all other macOS editor I know have an extra menu entry for open a directory

.. and more there are no tabs for open documents in such file browser windows nor a switcher for open files and all files will always saved even the option is disabled ... ok guess I'm to stupid for this kind of app logic ... switch back to vsc and bbedit

@1024jp
Copy link
Member

1024jp commented Sep 20, 2024

click on a folder in the open dialog will enable the sidebar

I believe just clicking a folder in the Open dialog does not open a document with the sidebar but just moves into the folder in the dialog. In order to open a folder as a window, you need to click the "Open" dialog.
In addition, this is the standard behavior of the Open dialog in macOS, as CotEditor does nothing for the file browser in the open dialog.

The reason why all other macOS editor I know have an extra menu entry for open a directory

Hmm, for instance, macOS-native editors such as Nova, CodeRrunner, and CodeEdit have only the Open command performing in the same manner.
(I suppose BBEdit also has only the Open command.)

and more there are no tabs for open documents in such file browser windows nor a switcher for open files and all files will always saved even the option is disabled

It's a feature task already posted in another thread: #1712.

@1024jp 1024jp closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2024
@1024jp 1024jp added the invalid label Sep 20, 2024
@aydindemircioglu
Copy link

sorry, if i reopen.

first thanks for the incredible editor!

i just wanted to ask if this can be changed--
in 5.0.4, i have this behaviour:

  • open file directly, then view->sidebar->file browser is greyed out.
  • open directory first, then sidebar is visible, and ican select file browsers.
    i find this unintuitive, somehow. why not allow view->sidebar->file browser anytime?
    for me, it means i have to close the file, reopen the directory, open the file again,
    although the option is nearly there.

@1024jp
Copy link
Member

1024jp commented Dec 1, 2024

@aydindemircioglu The short answer is unfortunately “no.”

CotEditor adopts the Sandbox security mechanism and document-based app design both by Apple.
That is, an app with Sandbox has a strict file access limitation. A sandboxed app can open only files/folders the user intentionally opened.
When a file is opened in a document-based app, it becomes a file document, which has a standard window without the file browser.
Likewise, only when a folder is opened in the app, it becomes a folder document, of which window has a file browser.
A folder document has the access permission only to its file and therefore cannot turn into a folder document afterward.

@aydindemircioglu
Copy link

ok, thanks for the explanation. didn't realize its due to security..

@Fischmuetze
Copy link
Author

CotEditor adopts the Sandbox security mechanism and document-based app design both by Apple.
That is, an app with Sandbox has a strict file access limitation. A sandboxed app can open only files/folders the user
intentionally opened.

There are many applications that can do this by asking for permission in advance.

I can only agree with @aydindemircioglu that this behavior and the resulting operation is completely unintuitive and I have never seen this approach in this way in any other app. This weird solution is also far away from any design giudelines ...

Anyway of course your design decision - if you are lucky with it - some users obviously are not.

@aydindemircioglu
Copy link

@Fischmuetze
i just wanted to say that while i second the change in design, i do not second your tone.

@Fischmuetze
Copy link
Author

Fischmuetze commented Dec 2, 2024

... i do not second your tone.

fine with me - guess this is a language to language transforming issue ...

@1024jp
Copy link
Member

1024jp commented Dec 2, 2024

Hmm, for instance, Xcode and CodeEdit behave similarly.
However, apart from that, different apps have different purposes.
CotEditor is not intended to be a replacement for VS Code.

CotEditor is actually designed to edit random document files rather than work with projects.
Furthermore, CotEditor principally aims to function perfectly in the macOS manner.
Therefore, I prefer to adhere to the standard macOS application principles for document-based applications.
I also don’t want to carelessly grant access permissions to the entire disk, even if I have the ability to do so.
This may sometimes not suit some users’ needs, but designers must make a choice, and this is how CotEditor makes decisions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid potential bug issues not yet tested
Development

No branches or pull requests

3 participants