Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Refocus Atom on Evince Reverse Sync #355

Merged
merged 2 commits into from
Mar 27, 2017
Merged

Refocus Atom on Evince Reverse Sync #355

merged 2 commits into from
Mar 27, 2017

Conversation

yitzchak
Copy link
Collaborator

Add window focus on reverse sync for Evince.

Resolves #354

@yitzchak yitzchak self-assigned this Mar 24, 2017
atom.focus()
atom.workspace.open(filePath).then(editor => editor.setCursorBufferPosition(point))
Copy link

Choose a reason for hiding this comment

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

Why do you focus first and then sync? I tried out both and either seems to work. But me personally feel that syncing first and then focus feels a bit more natural. Is there a technical motivation behind it?
(In the case of first focus and sync I could sometimes see the content of my editor windows move around.)

PS: This is so awesome.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It probably doesn't really matter. Focusing first gives some visual cues to the movement of the cursor, though.

@yitzchak yitzchak merged commit 0c440aa into master Mar 27, 2017
@yitzchak yitzchak deleted the fix-evince-sync-focus branch March 27, 2017 10:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants