Skip to content

fix: Freeze when pressing o when with project pane selected - shoul...#768

Open
bintocher wants to merge 1 commit intojesseduffield:masterfrom
bintocher:bintocher/issue-688
Open

fix: Freeze when pressing o when with project pane selected - shoul...#768
bintocher wants to merge 1 commit intojesseduffield:masterfrom
bintocher:bintocher/issue-688

Conversation

@bintocher
Copy link

Summary

Fixes a freeze when pressing 'o' with the project pane selected by making file and link opening operations asynchronous. Previously, the OpenFile and OpenLink functions used blocking command execution, which caused the UI to hang until the opened application closed.

Issue

Fixes #688

Changes

  • Modified OpenFile to use asynchronous command execution with cmd.Start() and go cmd.Wait() instead of blocking RunCommand
  • Modified OpenLink to use the same asynchronous pattern for consistency

Testing

  • Verified that pressing 'o' with the project pane selected now opens the config file without freezing the UI
  • Confirmed that opening links still works correctly and does not block the interface

Use non-blocking cmd.Start() with goroutine for Wait() instead of
synchronous RunCommand() in OpenFile and OpenLink methods.
Fixes jesseduffield#688
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

Successfully merging this pull request may close these issues.

Freeze when pressing o when with project pane selected - should open config

1 participant