Bug 395119 - Open multiple files at once from project view
Summary: Open multiple files at once from project view
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: project management (show other bugs)
Version: 2.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-07 18:03 UTC by Karl Ove Hufthammer
Modified: 2018-09-07 01:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ove Hufthammer 2018-06-07 18:03:01 UTC
Currently, it’s only possible to open *one* file at a time from the project view (even though one can have multiple files open at the same time, in different tabs). So if one wishes to open, e.g., five files, one has to:

Step 1: Click on first file (which is opened in a new tab, and the new tab is made active).
Step 2: Click on the project view tab (which may be hidden if one has many files/tabs opened) to reactivate it.
Step 3–10: Repeat above steps four more times, to open all the files.

This is a feature suggestion for opening multiple files at once. One would ‘Ctrl + click’, ‘Shift + click’ or drag mouse pointer to select the files one wanted to open, and then click on one of them or right-click and select ‘Open’. The files would then open (in separate tabs).

(Currently, dragging the mouse pointer to select multiple files work, but right-clicking and selecting ‘Open’ (or clicking on a file) only opens the file under the mouse pointer, not the rest of the files.)
Comment 1 Adrián Chaves (Gallaecio) 2018-06-10 07:56:47 UTC
What if we simply make Ctrl+click open the clicked file without changing the focus? It should be easier to implement, and solve the scenario you describe.
Comment 2 Karl Ove Hufthammer 2018-07-11 14:25:40 UTC
(In reply to Adrián Chaves (Gallaecio) from comment #1)
> What if we simply make Ctrl+click open the clicked file without changing the
> focus? It should be easier to implement, and solve the scenario you describe.

Yes, I would be happy if this was implemented.
Comment 3 Simon Depiets 2018-09-07 01:52:58 UTC
Git commit a6688209a3737bc1e26c354a07e0df80c27557d9 by Simon Depiets.
Committed on 07/09/2018 at 01:52.
Pushed by sdepiets into branch 'master'.

Allow multiple and background file opening

Summary:
This revision addresses the following feature :
Open multiple files at once from project view
https://bugs.kde.org/show_bug.cgi?id=395119

Three features added :
* Opening multiple selected files (Open selected files menu entry)
{F6236568}
* Opening all files in one/many folder(s) (Open selected files menu entry)
* Open a file in the background (Ctrl+DblClick)

Reviewers: #localization, aacid, ltoscano, adrianchavesfernandez, huftis

Tags: #localization

Differential Revision: https://phabricator.kde.org/D15284

M  +1    -1    src/editortab.h
M  +3    -4    src/filesearch/filesearchtab.cpp
M  +3    -3    src/filesearch/filesearchtab.h
M  +17   -15   src/lokalizemainwindow.cpp
M  +4    -4    src/lokalizemainwindow.h
M  +8    -8    src/nokde-stubs/prefs.cpp
M  +2    -2    src/nokde-stubs/projectbase.h
M  +1    -1    src/project/project.cpp
M  +1    -1    src/project/project.h
M  +12   -2    src/project/projecttab.cpp
M  +1    -1    src/project/projecttab.h
M  +2    -1    src/project/projectwidget.cpp
M  +1    -1    src/project/projectwidget.h
M  +2    -1    src/tm/tmtab.cpp
M  +1    -1    src/tm/tmtab.h
M  +1    -1    src/tm/tmview.cpp
M  +1    -1    src/tm/tmview.h

https://commits.kde.org/lokalize/a6688209a3737bc1e26c354a07e0df80c27557d9