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

Okular support #1064

Merged
merged 15 commits into from
Nov 10, 2019
Merged

Okular support #1064

merged 15 commits into from
Nov 10, 2019

Conversation

slideclimb
Copy link
Collaborator

@slideclimb slideclimb commented Nov 8, 2019

  • Adds forward search for Okular on Linux.
  • Adds a global setting to choose your PDF viewer, showing the installed viewers. (This is all you see on Windows.)
  • When both Evince and Okular are installed, you can choose one of them in the settings. The selected viewer will open after compilation, and TeXiFy provides forward search for this viewer.

Tested on Manjaro Linux and Windows 10.

There is an open pull request for Okular which should make setting up inverse search easier.

# Conflicts:
#	src/nl/hannahsten/texifyidea/action/evince/ForwardSearchAction.kt
#	src/nl/hannahsten/texifyidea/run/LatexCommandLineState.kt
#	src/nl/hannahsten/texifyidea/settings/TexifyConfigurable.kt
#	src/nl/hannahsten/texifyidea/settings/TexifySettings.kt
@slideclimb slideclimb added the enhancement New feature or (non bug related) change to the program. label Nov 8, 2019
@slideclimb slideclimb added this to the b0.6.8 milestone Nov 8, 2019
@slideclimb slideclimb self-assigned this Nov 8, 2019
Copy link
Collaborator

@PHPirates PHPirates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to check why backward search is not working for me

[Edit] Well either updating Okular or making sure the shell script from idea was in my path fixed it, works now, also in pycharm.

@slideclimb slideclimb changed the title Okular search Okular support Nov 9, 2019
# Conflicts:
#	src/nl/hannahsten/texifyidea/run/evince/OpenEvinceListener.kt
#	src/nl/hannahsten/texifyidea/run/latex/LatexCommandLineState.kt
@slideclimb slideclimb modified the milestones: b0.6.8, b0.6.7 Nov 10, 2019
# Conflicts:
#	src/nl/hannahsten/texifyidea/run/evince/OpenEvinceListener.kt
#	src/nl/hannahsten/texifyidea/run/latex/LatexCommandLineState.kt
# Conflicts:
#	src/nl/hannahsten/texifyidea/run/latex/LatexCommandLineState.kt
@NagabhushanSN95
Copy link

Will this work on Ubuntu as well?

@slideclimb
Copy link
Collaborator Author

@NagabhushanSN95 Yes, it should work on all Linux distros where you can install IntelliJ and Okular.

@PHPirates PHPirates merged commit 87deeb4 into master Nov 10, 2019
@hansonmcoombs
Copy link
Contributor

@PHPirates , generally thank you so much for your work! One minor suggestion to the documentation:

I got properly confused by the documentation (https://hannah-sten.github.io/TeXiFy-IDEA/pdf-viewers.html#okular) regarding setting up Okular for forward/backward searches (from pycharm). May I suggest altering the documentation to:

  • In Okular, open the settings and go to the Editor tab

For IDEA:

  • For Okular version > 1.8.3, select TeXiFy-IDEA from the list. For Okular 1.8.3 or less, select the Custom Text Editor in the editor field, and type the comman ...

For Pycharm:

  {bin} --line %l %f
  # example for pycharm
  pycharm-community --line %l %f

If you have trouble it may be due to a mismatch in the Jetbrains command you can check if the command is correct (and/or added to the system PATH) via:

which {bin}
# for pycharm
which pycharm-community

@PHPirates
Copy link
Collaborator

PHPirates commented Dec 20, 2023

@hansonmcoombs Thanks for your comment! It would be great if you could edit the documentation yourself, there is an 'edit page' button at the top of the page which should allow you to edit it.
You would be the first person to edit the new documentation so I would be really interested in your experience.
It should be really easy to edit the documentation, but if not please let me know!
https://hannah-sten.github.io/TeXiFy-IDEA/contributing-to-the-documentation.html

@hansonmcoombs
Copy link
Contributor

@PHPirates 🤦 I didn't realise it was forkable documentation, Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or (non bug related) change to the program.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants