Skip to content

Change window focus behaviour on \ll: Focus the newly created viewer window, not vim #180

@nasenatmer

Description

@nasenatmer

First, thanks for your great work on this project again :)

Although we talked about it recently and said it would be more intuitive if vimtex returns window focus to vim after the viewer has been started due to successful compilation by \ll, I think I've changed my view here.

Whenever I have a new window in front of any other window, I assume that this is the one in focus and start using key strokes (eg with zathura in order to set width, scroll down or something like that). However, these keys are sent to vim as the focus is returned to it when the viewer is opened for the firmt time, which often irritates me.

Although I'd appreciate if the default behaviour would change, I'd equally be happy to know which part of vimtex#util#execute needs changed in my personal fork so I can change this behaviour locally.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions