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

Joshuto exits with error on "open_with" action attempt without a target #546

Open
steven-reina opened this issue Jun 16, 2024 · 0 comments

Comments

@steven-reina
Copy link

Description:

Using joshuto, when attempting to open an empty target (on an empty directory) with an arbitrary command (using the native :open_with command), it perhaps handles this error case by exiting joshuto altogether, with a 101 exit code.
This error is reproducible, regardless of the platform it's run on.

System information:

  • OS: Arch Linux / macOS Sonoma 14.5
  • Kernel: Linux 6.9.4-arch1-1 / Darwin 23.5.0
  • Software version: joshuto-0.9.8

How to reproduce:

  • Enter an empty directory
  • Execute Joshuto's native command :open_with (or hit r, which is the default shortcut)
  • Joshuto terminates with exit code 101

Expectation:

I don't believe this to be the intended way to handle such case, so it should simply print some warning in the information/command bar, or maybe nothing at all, as is the case for the :open command under the same circumstances, as of right now.

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

No branches or pull requests

1 participant