Feature/913 link opening confirmation optional#940
Conversation
|
I found that there are a handful of ways to implement this, so if there is a better way to implement this let me know. I will wait for it to get unblocked by the gtk4 port, once that gtk4 port is merged I'll make the needed changes to this branch. |
|
|
@valoq thanks for the feedback, thoughts on me putting the check in the |
Looks ok to me. clang format is complaining though, the spacing is a bit off. |
|
I need to fix my formatter on my config at some point I have a question on your comment since I'm relatively new to C
I do react stuff at work, and if you had something in your component that was null, react will just skip over rendering. My thought going in to this was if you pass entry in as null, you'll know that no input is expected to be read and you can just move onto opening your link. Is this idea no relevant to C code? |
|
Also I noticed on your gtk4 pr you combined your commits into one, is that what is expected when committing to zathura? |
|
There is no clear rule on that. In some cases it makes sense to squash the commits, sometimes not. In this case, as the commits fix up issues in earlier commits of the PR, I would prefer that the commits be squashed. But let's wait with that until we landed the Gtk 4 PR. |
|
Sounds good |
|
@aanthoonyy Please rebase on current develop and squash the commits. |
b6c39a3 to
11b33d5
Compare
bd74fa1 to
ed465ea
Compare
|
@sebastinas Okay, this should be good... |
Link to original feature request
939
Overview
Add a configuration option for skipping the confirmation dialog when opening external links in a document
:set disable-link-confirm falseis default and keeps behavior the same as before which was providing a dialog that can be accepted by 'y' or 'enter' but anything else cancels opening the link in the browserset disable-link-confirm trueremoves the dialogue prompt and just opens the link in the browserChanges
girara_setting_addinconfig.ccb_link_confirmto allow entry to be NULL inlinks.clink_confirm_spawnto pass entry in as NULL tocb_link_confirmin the event thatdisable_link_confirmis true