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