Comments (12)
from pdfarranger.
ctrl+s enter enter
does not work for me due to window focusing paradigm and because I don't want my mouse to jump to newly opened dialogs (high risk of bad clicks).
for the risk of data loss, there's a thing called "using a temporary filename".
if you refuse to implement this, I will fork.
from pdfarranger.
It does not because pdfarranger is not rigorously a file modifier. The PyPDF2 import/export is not a transparent operation. If you add a PDF file to pdfarranger then save, PyPDF2 rewrite the whole file and possibly change it's structure. Most of the time we don't want the original file to be replaced because there is a high risk of data loss.
This is why the save action redirect to save as until the user has specified a file name to save to.
Here is what I suggest:
- if a single file (or no file) was imported and not modified
- Quietly close
- else ask about save confirmation, and if yes
- if the user as already manually run the save or save as action to select a different file name
- Quietly save and close
- else
- Open a save as dialog
- if the user as already manually run the save or save as action to select a different file name
The implementation is linked to #59 because this is where I can get the modified status of the file.
from pdfarranger.
How is the risk of data loss addressed with this solution? I think it's rather serious since the exported file can be corrupted while the preview in pfarranger looks good. The user has no possibility to check the results before it's too late
from pdfarranger.
@dreua I did not implemented what OP asked for. A file chooser still popup at the first save, but now it default to the first imported PDF files. So before overwriting a file the user still have to confirm two times:
- Click save in the file chooser without changing the file name
- Confirm that he wants to overwrite
He can also blindly press ctrl+s
, enter
, enter
which allow to get almost what OP wants.
from pdfarranger.
That sounds okay to me, thank you for the clarification!
from pdfarranger.
For me, the "save" dialog does not default to a filename, unfortunately. If it did that, I guess I could live with it (and #100 could be ignored).
Also, how do you get ctrl+s
to work?
from pdfarranger.
@madduck For me the "save" dialog always defaults to a filename (pdfarranger 1.3.0 on Linux/Fedora) and ctrl+s
just works. Unfortunately I can only look into your problem if there is a way for me to reproduce it.
from pdfarranger.
@petaflot it would be cool if you submitted a merge request. Also starts with a fork. ;)
from pdfarranger.
I'm looking at the code.
I figured "to make everyone happy, I'll add a "ctrl+alt+s shortcut". That doesn't make me happy:
WTF is this <Primary>
name for ctrl
? comments says "See ..." for list of keys", "Primary" is not in the list. Come on... am I supposed to try pseudo-random names to find out the correct binding?
from pdfarranger.
<Secondary>
is obviously not recognized. Unless someone gives me a clue, I will just write a dirty hack that I will keep for myself instead of doing things properly
from pdfarranger.
days until I make my own distro: current_days_count -1
from pdfarranger.
Related Issues (20)
- Support file Attaching HOT 8
- PDF arranger does not save the text layer HOT 2
- Unable to remove "PDF Arranger" HOT 2
- Please enable PDF Arranger to add text to PDF documents HOT 2
- Feature Wish: Adding (clickable) Table Of Contents to pdf's (like LaTeX's Hyperref) HOT 2
- Split/Crop page with mouse selection
- Can't change language when the program is set to Hebrew HOT 10
- Look into replacing python-distutils-extra HOT 2
- Select Range(s) from Menu/Dialog HOT 3
- Sort Option HOT 7
- Shortcut for "Edit properties" HOT 2
- Pillow version mismatch HOT 5
- Undo history dialog HOT 1
- [Arch] community merged into extra repository HOT 1
- Problems with paper format in booklet generation HOT 4
- Bug: Overly long field in properties causes window to become too wide HOT 1
- Verify app HOT 1
- Changing the marked page does not change the shown page (FR: follow the selection) HOT 2
- Fuzzy on 'Select Same Page Format' HOT 1
- SAVE doesn't works. Always appears SAVE AS prompt. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfarranger.