-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Open folder/main action in new tab with ctrl+click #16067
Comments
cc @nextcloud/designers |
What do you mean by this? The download button is in the actions menu always. :) We generally open things in the same tab unless it’s external links. Because you can also just close the file viewer or e.g. Collabora, and then you are back at the same point in files. Otherwise it leads to a whole bunch of open tabs. |
However if i wanted to open several things at the same time, or to compare multiple documents, i would currently have to open several instances of nextcloud, only to close them again later. |
@KnownNexus I'm not sure I understand, are you talking about browser tabs? Or asking for a new feature like internal nextcloud tabs? |
Browser tabs |
Then I disagree :) |
Ctrl + click will download files, because the link points to the webdav endpoint and not the web UI. |
For files sure, but opening a file in a new tab doesnt make sense anyway :) |
Why not? COuldn't it simply open the details view (viewer, text app, collabora, ...)? |
Yeah, agree with @MorrisJobke – Ctrl-Click should do the primary action in a new tab, that is, open the file or folder. |
that sounds like a very odd behaviour to me? |
Folder
File
|
I'm perfectly happy with that compromise, it's already part of the patch i wrote originally |
Exactly - and this is not the case now. As of now the Ctrl click downloads the file instead of opening it ;) |
for me it starts the selection 🤔 🙈 |
Ah, i as always using the middle mouse button (which opens the new tab with the download of the file then) 🙈 |
I've created a pull request for my changes |
for me as well (nc 16.0.4). But I think that is okay, because files in win explorer and most "linux explorer" are handled the same. ctrl mostly initiates multi select. I think what really needs to be fixed is the fact that ctrl clicking the app icons does open the new tab, but it also redirects me to the files page in the current tab. Not really helpful. |
@godfuture I just tried what you described and it seems to be fixed: |
@jancborchardt, @juliushaertl I was looking into the merge request above as a bit of an exercise. I think this behavior is consistent with the 'overwritten' right-click behavior. The file list behaves like a file explorer - not like a browser. I'm happy to fix the issues in the pull request even though i don't agree with the intention. Just want to make sure this actually is what you want. |
I actually just encountered that for the first time as well 🙈
@jancborchardt I wasn't aware that we overwrite a default browser behavior for ctrl+click do to selection instead of a new tab, is that intended? As a general comment on the approach in #16067, I think it is only half way to how it should actually behave. The ideal solution would look like the following.
In theory there is already a fileid parameter, but I cannot really tell if that is something we could also reuse for that approach. Of course the whole editfile parameter is not really ideal at all but I think there is no real easy way around that with the current state of the files app. In an ideal world we would have self-speaking urls like |
To clarify: Yes, the intention is that Ctrl-Click opens in a new tab, as we already do e.g. for Talk conversations, the app list in the header, and lots of other places. Having it do something different just in Files would be unexpected. (Selecting is also very present already with the visible checkboxes.) |
Currently the default behaviour for opening a file is to either embed it in the current page or, in a new tab, is to download the file,
I think it would be good to have the file attempt to open file in a new tab by default. This would allow for the current page to be kept open, meaning you can just close the tab with the file in it, and continue with your session.
An example could be collabora online, which will open in the current window, but will only download if you open a new tab.
My suggested change would have a single click open it in a new tab, keeping the current window just containing the file system, the same would happen for ctrl-click or right click- open new tab
I have currently written a simple change which achieves this, but i wanted to get an idea of the communities views on this change
The text was updated successfully, but these errors were encountered: