jesseduffield / jesseduffield/lazycli

$ not open config.yml on Windows

Open
#5 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
434
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I'm using lazycli 0.1.14 on a Windows10 machine. I do not have any default association for the .yml files.
So, for example, if I try to
> start C:\Users\me\AppData\Roaming\lazycli\config\config.yml

I get nothing but a OS popup that asks me to suggest my preferred application to edit the .yml files

So within lazycli, $ has no effects at all, the low status bar quickly toggles between two messages, so the first one about "I'm using start" is barely visible. The Windows popup about file association does not appear when "start" is called by lazycli

Code behind it seems like

11 | #[cfg(target_os = "windows")]
-- | --
12 | pub fn open_command() -> String {
13 | String::from("start")
14 | }

Unfortunately, I have no proposal about how to handle this situation or even if it has to be handled at all or code is fine like it is right now:
- maybe using dear old notepad ?
- maybe provide an environment variable to let the user to select its editor
- maybe just try to figure out that nothing happened with "start" and try to better prompting that user?

in any case, lazycli is a cool small doing one thing command: greater job

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.