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

Add Windows and Powershell support #280

Merged
merged 37 commits into from
Dec 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
46a7a87
replace termion with crossterm for portability & configurability
dmfay Jun 1, 2021
60490b9
supply alternate default colors for MCFLY_LIGHT
dmfay Jun 5, 2021
6b89f60
cargo update
dmfay Jun 21, 2021
14dff30
wip
jtschuster Aug 24, 2022
394396e
Somewhat working on windows????
jtschuster Aug 26, 2022
e61b21c
Working on windows reliably
jtschuster Aug 28, 2022
74ac425
wip
jtschuster Sep 1, 2022
4e2f83d
Merge branch 'master' of https://github.com/cantino/mcfly into mergeMain
jtschuster Sep 1, 2022
5dc17fe
wip
jtschuster Sep 1, 2022
9a6afba
Add windows path test and update path normalizer
jtschuster Sep 2, 2022
24ed41f
Clean up
jtschuster Sep 4, 2022
44e79e7
clean a little more
jtschuster Sep 4, 2022
2ff4ff2
VSCode files gitignore
jtschuster Sep 4, 2022
d7f9ff2
Final clean
jtschuster Sep 4, 2022
a74cadd
Couple other small changes
jtschuster Sep 4, 2022
0033d7c
format
jtschuster Sep 4, 2022
8813ea7
Merge branch 'master' of https://github.com/cantino/mcfly into crosst…
jtschuster Nov 5, 2022
3fc6a15
Avoid the black flicker on key strokes by never clearing all
jtschuster Nov 5, 2022
154d639
format
jtschuster Nov 5, 2022
5c978dd
Add loop to clear lines where there are no longer matches
jtschuster Nov 6, 2022
0eeb04c
Format
jtschuster Nov 6, 2022
9e08024
Merge branch 'crossterm' into crossterm-and-colors
jtschuster Feb 26, 2023
558b147
pwsh
jtschuster Feb 26, 2023
f9e802d
Clear every results line
jtschuster Feb 27, 2023
c7bf093
Fix bug in autopilot crate
jtschuster Feb 28, 2023
7ed4079
Fix clippy warnings
jtschuster Feb 28, 2023
95f0375
Merge branch 'master' of https://github.com/cantino/mcfly into crosst…
jtschuster Mar 5, 2023
a020f68
fmt
jtschuster Mar 5, 2023
f074c93
make autopilot a dependency on windows only
jtschuster Mar 6, 2023
f396487
Merge branch 'master' of https://github.com/cantino/mcfly into crosst…
jtschuster Mar 6, 2023
0a3013f
Merge main
jtschuster Sep 11, 2023
6d97752
remerge
jtschuster Sep 11, 2023
2671961
Add command to temp file by default instead of using autopilot
jtschuster Sep 12, 2023
1f17260
Always load mcfly, add blank line to mcfly history before call
jtschuster Sep 12, 2023
db36db4
Remove Dirs dep, fix non-windows warning, add unwrap_or
jtschuster Sep 12, 2023
a28ab76
Remove relative-path
jtschuster Sep 12, 2023
c8e8bc0
Use PWD function instead of env::curent_dir in normalize path
jtschuster Sep 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
jtschuster committed Mar 5, 2023
commit a020f683479e442560c4c599ca12bb88875530eb
15 changes: 9 additions & 6 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,15 @@ fn pwd() -> String {

#[cfg(windows)]
fn pwd() -> String {
env::current_dir().unwrap_or_else(|err| {
panic!(
"McFly error: Unable to determine current directory ({})",
err
)
}).display().to_string()
env::current_dir()
.unwrap_or_else(|err| {
panic!(
"McFly error: Unable to determine current directory ({})",
err
)
})
.display()
.to_string()
}

fn is_env_var_truthy(name: &str) -> bool {
Expand Down