sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 216 forks source link

files: do not implicitly change dir upon closing a tab #4442

Open haraldschilly opened 4 years ago

haraldschilly commented 4 years ago
  1. imagine I've 3 Tabs, A, B, C, all in different directories a, b and c.
  2. I'm working with file C and hence my "files" view is in c
  3. When I close C, it will switch over to show file B and also change the files directory to b.

That's usually not what I want and it's very annoying. Most of the time I want to open a different file in the same directory where C was. It would be much better if closing tab C lets files stay put in directory c.

williamstein commented 4 years ago

I disagree because the current behavior is intentional and exactly matches what Emacs does.

I think we should close this ticket and instead have a ticket about creating a completely different way of showing files that better solves these problems in a modern way (namely, like in VS Code or IDEs or just have a files "editor" like in operating systems).

haraldschilly commented 4 years ago

can't we at least make this a setting? I never used emacs and I can't follow the argument. cocalc isn't emacs.

if such a different editor also behaves like emacs, it might be as annoying for me.

williamstein commented 4 years ago

can't we at least make this a setting?

yes, definitely. There's no harm in that.

slel commented 4 years ago

I like the way JupyterLab does it: collapsible left sidebar.

This is described in the "Interface" page of the documentation:

https://jupyterlab.readthedocs.io/en/stable/user/interface.html

williamstein commented 4 years ago

Which is?

On Fri, Mar 13, 2020, 11:36 AM Samuel Lelièvre notifications@github.com wrote:

I like the way JupyterLab does it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/cocalc/issues/4442#issuecomment-598860169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXS5UDBOVCGJGO32OJLJDRHJ4KXANCNFSM4LG5ZBWA .

williamstein commented 4 years ago

OK, I'm surprised to say but I'm getting really annoyed with "my" design where the current working directory for the file/search/etc. changes based on the last file tab you click...

Maybe we should just change things uniformly so that the file tab doesn't impact the working directory at all. I'm opened to this change...