Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
114
Issues
114
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura
Commits
01b5750b
Commit
01b5750b
authored
Mar 12, 2012
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add setting to ignore page number stored in file info. (Closes: #145)
Thanks for the patch to Urchlay.
parent
59f27880
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
config.c
config.c
+2
-0
document.c
document.c
+7
-0
No files found.
config.c
View file @
01b5750b
...
...
@@ -97,6 +97,8 @@ config_load_default(zathura_t* zathura)
girara_setting_add
(
gsession
,
"show-hidden"
,
&
bool_value
,
BOOLEAN
,
false
,
_
(
"Show hidden files and directories"
),
NULL
,
NULL
);
bool_value
=
true
;
girara_setting_add
(
gsession
,
"show-directories"
,
&
bool_value
,
BOOLEAN
,
false
,
_
(
"Show directories"
),
NULL
,
NULL
);
bool_value
=
false
;
girara_setting_add
(
gsession
,
"open-first-page"
,
&
bool_value
,
BOOLEAN
,
false
,
_
(
"Always open on first page"
),
NULL
,
NULL
);
/* define default shortcuts */
girara_shortcut_add
(
gsession
,
GDK_CONTROL_MASK
,
GDK_KEY_c
,
NULL
,
sc_abort
,
0
,
0
,
NULL
);
...
...
document.c
View file @
01b5750b
...
...
@@ -330,6 +330,13 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
document
->
pages
[
page_id
]
=
page
;
}
/* jump to first page if setting enabled */
bool
always_first_page
=
false
;
girara_setting_get
(
zathura
->
ui
.
session
,
"open-first-page"
,
&
always_first_page
);
if
(
always_first_page
)
{
document
->
current_page_number
=
0
;
}
/* apply open adjustment */
char
*
adjust_open
=
"best-fit"
;
document
->
adjust_mode
=
ADJUST_BESTFIT
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment