Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdftools: page-number #113

Open
g4v4g4i opened this issue Feb 7, 2020 · 0 comments
Open

pdftools: page-number #113

g4v4g4i opened this issue Feb 7, 2020 · 0 comments

Comments

@g4v4g4i
Copy link

g4v4g4i commented Feb 7, 2020

Hi, a great feature would be to show the page number in pdftools/pdf-view-mode.
I suppose something along the lines of:

   (spaceline-define-segment all-the-icons-position
      "An `all-the-icons' Line & Column indicator"
     (if (eq major-mode 'pdf-view-mode)
      (concat (number-to-string (pdf-view-current-page))
	      "/"
	      (number-to-string (pdf-cache-number-of-pages)))
      (propertize (format-mode-line "%l:%c")
		'face `(:height ,(spaceline-all-the-icons--height 0.9) :inherit)
		'display '(raise 0.1))
     )
     :tight t
    )

may do. This is similar to how it is handled in the segment line-column in spaceline-segments.el.
Best, Christian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant