AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[FR] Work on multiple workspaces at a time using tabs

Open emmggi opened this issue 2 years ago • 12 comments

Description

Searched through the issues if someone suggested but didn't find any.

I propose a way to have multiple workspaces open at once (as tabs) so that they can be all edited without going through the note list every time to find other documents.

Obsidian has this for instance.

Impact

Everyone who may edit several different documents/workspaces at a time.

Additional Context

I suggest these tabs be in the appbar below the title. When there's only one document open it should be hidden.

Opening a workspace with a double-click opens it in a new tab, while a single-click will open it in place ie open it in the tab that is currently open.

emmggi avatar Jul 05 '23 08:07 emmggi

Is this what you mean? image

annieappflowy avatar Jul 07 '23 13:07 annieappflowy

I actually have something done on my local for this. I could most likely finish it up within a couple of days.

I just checked the progress, there are a few things that I still need to work on, but you can see a small sample here.

https://github.com/AppFlowy-IO/AppFlowy/assets/42929161/5aa4c5ab-2f3c-4792-ad66-e8f44ecd1c6b

Xazin avatar Jul 07 '23 13:07 Xazin

Wow, that's cool!

FYI, I had a master issue about page organizations: https://github.com/AppFlowy-IO/AppFlowy/issues/2312

annieappflowy avatar Jul 07 '23 13:07 annieappflowy

@annieappflowy yes, I mean this what @Xazin showed, only it would make more sense for it to be below the title in my opinion.

emmggi avatar Jul 07 '23 16:07 emmggi

@annieappflowy yes, I mean this what @Xazin showed, only it would make more sense for it to be below the title in my opinion.

Below the title? I don't think that would look well and be a good UX to be honest.

I can't find any other application or design where tabs would be below in hierarchy to something that is related to the tab itself.

I am interested if you can tell me more, and maybe if you know of some similar existing solutions?

Xazin avatar Jul 07 '23 17:07 Xazin

@Xazin In that way you are right, but, visually, because you have a divider (or is it underline) in that widget it would make more sense to have it separate appbar from the rest of the body. Or best, remove the border to make it blend in.

emmggi avatar Jul 07 '23 18:07 emmggi

@Xazin In that way you are right, but, visually, because you have a divider (or is it underline) in that widget it would make more sense to have it separate appbar from the rest of the body. Or best, remove the border to make it blend in.

Ah, okay. What you are seeing in my recording is basically a mock of the functionality, the UI wasn't touched.

I will open a PR next week and include a recording with the end result, it will look cleaner, guaranteed.

Xazin avatar Jul 07 '23 21:07 Xazin

Thank you.

emmggi avatar Jul 08 '23 08:07 emmggi

@emmggi See #2962

Xazin avatar Jul 10 '23 12:07 Xazin

@Xazin This looks great. Thank you.

Is there a possibility to add this behavior as well that I mentioned in my original message?

Opening a workspace with a double-click opens it in a new tab, while a single-click will open it in place ie open it in the tab that is currently open.

This would make it much easier to open in new tabs than use the menu.

emmggi avatar Jul 10 '23 16:07 emmggi

@Xazin This looks great. Thank you.

Is there a possibility to add this behavior as well that I mentioned in my original message?

Opening a workspace with a double-click opens it in a new tab, while a single-click will open it in place ie open it in the tab that is currently open.

This would make it much easier to open in new tabs than use the menu.

Would middle mouse button work for you instead of double click?

Xazin avatar Jul 10 '23 16:07 Xazin

Sure.

emmggi avatar Jul 10 '23 16:07 emmggi