SUMMARY Unlike SumatraPDF, Okular can't rename an open PDF file if you click F2 on your keyboard. This is a nifty little feature that lets you view a document and rename it to a more human readable form (since PDFs usually come with horrible machine generated file names). STEPS TO REPRODUCE 1. Open a PDF in Okular. 2. Click F2 OBSERVED RESULT 1. No rename dialog comes up. EXPECTED RESULT 1. A rename dialog pops up that lets you rename the currently open file. SOFTWARE/OS VERSIONS All versions. ADDITIONAL INFORMATION Thank you so much for producing such a wonderful piece of software.
Seems reasonable to me. Gwenview lets you do this.
Are you really talking about the filename, or the pdf title? If you are talking about the filename, than what is wrong with "save as" in the menu below file? On my system it has the shortcut "ctrl-shift-s". So, maybe the user could simply set a user-defined short cut for that?
I assume it's about renaming the file. Save As creates a copy; renaming isn't the same thing.
When I select "save as", I get a "save as"-dialoge. That dialog allows to save the file with a new name AND rename existing files. In particular, if I press F2 in the "save as" dialog, I get the "rename element" dialog for the current file.
If you want to rename the file with shortcuts only, you can use ctrl+shift+S followed by F2.
(In reply to andreas.naumann from comment #5) > If you want to rename the file with shortcuts only, you can use ctrl+shift+S > followed by F2. That doesn't rename a file, it only creates a new file with the name you want. The old file is still there with its old name.
Try using Okular in Ubuntu, there is no rename dialog.
I tried my suggestion using * ubuntu version: 20.04 (LTS) * okular version (snap): 20.12.3 Using "file -> save as" shows the file dialog window of the system, this time the unity dialog. Here, I can only right click on the file name, and select rename. Thus you can rename the file, but I lack the shortcut. But that seems to be a lacking feature in unity, not in okular.
Created attachment 147889 [details] attachment-4183-0.html You are not renaming the file you are just saving a new file with a different name On Sat, 2 Apr 2022, 7:44 pm , <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=452017 > > --- Comment #8 from andreas.naumann@kdemail.net --- > I tried my suggestion using > * ubuntu version: 20.04 (LTS) > * okular version (snap): 20.12.3 > > Using "file -> save as" shows the file dialog window of the system, this > time > the unity dialog. Here, I can only right click on the file name, and select > rename. > > Thus you can rename the file, but I lack the shortcut. But that seems to > be a > lacking feature in unity, not in okular. > > -- > You are receiving this mail because: > You reported the bug. > You are on the CC list for the bug.
(In reply to Kevin Flynn from comment #9) > Created attachment 147889 [details] > attachment-4183-0.html > > You are not renaming the file you are just saving a new file with a > different name > > On Sat, 2 Apr 2022, 7:44 pm , <bugzilla_noreply@kde.org> wrote: > Please keep in mind, that the rename option is selected in the file dialog. That the menu entry in okular is called "save as", and the window title is "save as", does not matter at all. Strictly speaking, I do NOT save the file with a new name. After renaming the file, you can close that dialog using esc, or in what way you like. Please do, as stated and check the result.
Using KDE allows to use the file-open dialog to achieve the same. Sadly, the file-open dialog in unity does not provide a rename, at least not in the live system of ubuntu-20.04. The procedure would be: 1. start the "file open" dialog (using file -> open, or ctrl + O) 2. click the old file name in the file list using the right mouse button 3. select "rename" from the options 4. type the new file name That procedure worked for me using KDE. There I can start typing the old name, until it is highlighted and press F2 for renaming.
Created attachment 147910 [details] attachment-23276-0.html Try the experience of pressing F2 in Sumatra PDF (in wine) or in Glenview. It's more efficient and user-friendly. On Sat, 2 Apr 2022, 9:45 pm , <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=452017 > > andreas.naumann@kdemail.net changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| | > andreas.naumann@kdemail.net > > --- Comment #11 from andreas.naumann@kdemail.net --- > Using KDE allows to use the file-open dialog to achieve the same. Sadly, > the > file-open dialog in unity does not provide a rename, at least not in the > live > system of ubuntu-20.04. > > The procedure would be: > 1. start the "file open" dialog (using file -> open, or ctrl + O) > 2. click the old file name in the file list using the right mouse button > 3. select "rename" from the options > 4. type the new file name > > That procedure worked for me using KDE. There I can start typing the old > name, > until it is highlighted and press F2 for renaming. > > -- > You are receiving this mail because: > You reported the bug. > You are on the CC list for the bug.
Created attachment 165193 [details] Rename with gwenview
Created attachment 165194 [details] Rename with Okular
Thanks I've just added F2 alternate shorcut to CTRL+S! However, the rename action according to Gwenview offering the old name in the input field, instead of empty one. For my part, intuitively, "save as" should have worked like "export as". And therefore would have allowed the creation of a second file.
I'll have to agree with Kevin here. The use of the Save As dialogue just for renaming purposes seems like a very roundabout way of doing things. If a dialogue box says "Save As", I would expect to have to open it only for saving a new file based on an existing one (maybe with a different name), and not just close it after doing something in the dialog that was not directly intended.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/922
(In reply to Bug Janitor Service from comment #17) > A possibly relevant merge request was started @ > https://invent.kde.org/graphics/okular/-/merge_requests/922 Maybe it is too late at this point to comment, but since the last activity on the pull request was 11 months ago, I'll share my observations. (In reply to andreas.naumann from comment #4) > When I select "save as", I get a "save as"-dialoge. That dialog allows to > save the file with a new name AND rename existing files. In particular, if I > press F2 in the "save as" dialog, I get the "rename element" dialog for the > current file. This does not really provide a rename feature similar to Sumatra PDF. What the SumatraPDF rename feature does is 1. Open a "save as" like dialog. 2. Allow selecting any new file name, including in OTHER directories. 3. MOVE the file upon confirmation, or 4. RETAIN the old file name upon cancelling. What the workaround does is: 1. Show the actual "save as" dialog with the current file name being selected. 2. Upon pressing "F2", show the dolphin file rename dialog. 3. Upon confirmation of this dialog, rename the original file, and select the renamed entry in the dialog. 4. OVERWRITE the renamed file upon confirmation, BUT 5. IGNORE the renaming if the "save as" is not confirmed, treating it as if the file has been deleted, instead of switching the viewer to the documents new name. So the workaround has two main issues, even when it is available: 1. Okular is not actually aware of the file being renamed, allowing for outcomes where Okular keeps displaying the file under its old, no longer existing name. 2. It does not allow to move the file to other directories. Additionally, the workaround relies on the specific file-selector dialog implementation being used. Specifically, on the KDE file selector dialog acting like a streamlined subset of dolphin, with a full context menu and the hotkeys that come with it (F2 in this case). The only other GUI toolkit I am aware of, that provides similar features, is the native desktop GUI toolkit on Windows. Hence it is also not viable to call this a missing feature of Unity (comment #8), given that many GUI toolkits share that design decision. The biggest give-away, that it is only a workaround and not a replacement, however, is the behavior when renaming the file in the "save as" dialog and then not overwriting the renamed file (comment #10 and comment #16).