We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a thread continually processing the current file and opening the generated image for PlantUml diagrams:
But doing this, does not restore the focus back after opening the image:
change_count = view.change_count() active_sheet = window.active_sheet() group, view_index = window.get_view_index(view) create_and_open_image() window.focus_view( view ) window.focus_group( group ) window.focus_sheet( active_sheet )
After generating the image, I still have to press Ctrl+1 (command: focus_group {"group": 0}) to the focus to be set to the first view/sheet.
Ctrl+1
dpi_scale
The text was updated successfully, but these errors were encountered:
I finally make it work by using a 1.0 seconds sleep, 0.5 does work:
1.0
0.5
self.sleepEvent.wait( 1.0 ) print("group: %s" % group) window.run_command( "focus_group", {"group": group} )
This is for the issue:
With this 1.0 delay I cannot implement it, because it will cut off the text typing, as the view will be focused on the image for some milliseconds.
Sorry, something went wrong.
Closing for now as I just saw this:
sourceFile = view.file_name() t = Thread(target=render_and_view, args=(sourceFile, diagrams,))
The open image call seems to be async.
I just confirmed it is working correctly by fully implementing the feature on this pull request:
No branches or pull requests
Summary
I have a thread continually processing the current file and opening the generated image for PlantUml diagrams:
But doing this, does not restore the focus back after opening the image:
After generating the image, I still have to press
Ctrl+1
(command: focus_group {"group": 0}) to the focus to be set to the first view/sheet.Environment
dpi_scale
used in ST 1.0The text was updated successfully, but these errors were encountered: