summaryrefslogtreecommitdiff
path: root/src/util/util_windows.go
AgeCommit message (Collapse)Author
2024-05-18chore: use strings.ReplaceAll (#3801)Zhizhen He
2024-05-140.52.1Junegunn Choi
2024-05-07Refactor the code so that fzf can be used as a library (#3769)Junegunn Choi
2024-05-06Do not enable delayed expansion mode when running cmd.exeJunegunn Choi
And simplify the argument escaping code. Fix #3764. This may breaks some existing use cases, but the mode causes too much trouble when escaping arguments and it makes some things not possible. # Now you can pass special characters to rg process without any escaping problems: &|<>()@^%! fzf --ansi --disabled --bind "change:reload:rg --column --line-number --no-heading --color=always --smart-case -- {q}" # No sudden expansion of the arguments on '!' fzf --disabled --preview "echo {q} {n} {}" --query "&|<>()@^%!" --prompt "&|<>()@^%!"
2024-04-28Escaping for cmd.exe: always use double quotesJunegunn Choi
2024-04-28Fix escaping for cmd.exeJunegunn Choi
Close #3651 Close #2609
2024-04-28Determine shell type once by the basenameJunegunn Choi
2024-04-28Restore CmdLine parameter when running commands using cmd.exeJunegunn Choi
2024-04-27Add --with-shell for shelling out with different command and flags (#3746)Junegunn Choi
Close #3732
2023-02-15become: Set stdin to /dev/ttyJunegunn Choi
2022-03-29Modernize build tagsJunegunn Choi
2021-11-02Fix powershell escapingRashil Gandhi
2021-10-25Cache cygpath resultJunegunn Choi
No need to repeatedly run cygpath process because $SHELL never changes.
2021-10-23Respect SHELL env var on Windows (#2641)Rashil Gandhi
This makes fzf respect SHELL environment variable on Windows, like it does on *nix, whenever defined. Close #2638
2018-10-070.17.5Junegunn Choi
2018-09-28Kill running preview process after 500ms when focus has changedJunegunn Choi
Close #1383 Close #1384
2018-01-17Update Windows default command to print relative paths (#1200)Jan Edmund Lazo
2017-10-15Fix compilation error of Windows binaryJunegunn Choi
2017-10-14Fix ExecCommandWith for cmd.exe in Windows (#1072)Jan Edmund Lazo
Close #1018 Run the command as is in cmd.exe with no parsing and escaping. Explicity set cmd.SysProcAttr so execCommand does not escape the command. Technically, the command should be escaped with ^ for special characters, including ". This allows cmd.exe commands to be chained together. See https://github.com/neovim/neovim/pull/7343#issuecomment-333350201 This commit also updates quoteEntry to use strings.Replace instead of strconv.Quote which escapes more than \ and ".
2017-09-28Update FZF_DEFAULT_COMMANDJunegunn Choi
- Use bash for `set -o pipefail` - Fall back to simpler find command when the original command failed Related: #1061
2017-06-03Fixes for CygwinJunegunn Choi
- Update install script to download Windows binary if $TERM == cygwin - Unset TERM if $TERM == cygwin (#933) - Always use cmd.exe instead of $SHELL when running commands
2017-06-01Use glide to handle go dependenciesEdgar Lee
2017-05-25Use read syscall directly to get character (#931)Tw
Due to go std lib uses poller for os.File introducing in this commit: https://github.com/golang/go/commit/c05b06a12d005f50e4776095a60d6bd9c2c91fac There are two changes to watch out: 1. os.File.Fd will always return a blocking fd except on bsd. 2. os.File.Read won't return EAGAIN error for nonblocking fd. So For 1, we just get tty's fd in advance and then set its block mode. For 2, we use read syscall directly to get what we wanted error(EAGAIN). Fix issue #910. Signed-off-by: Tw <tw19881113@gmail.com>
2017-01-08Add --height optionJunegunn Choi
2016-11-08Fix issues in tcell renderer and Windows buildJunegunn Choi
- Fix display of CJK wide characters - Fix horizontal offset of header lines - Add support for keys with ALT modifier, shift-tab, page-up and down - Fix util.ExecCommand to properly parse command-line arguments - Fix redraw on resize - Implement Pause/Resume for execute action - Remove runtime check of GOOS - Change exit status to 2 when tcell failed to start - TBD: Travis CI build for tcell renderer - Pending. tcell cannot reliably ingest keys from tmux send-keys
2016-11-07Prepare for termbox/windows buildJunegunn Choi
`TAGS=termbox make` (or `go build -tags termbox`)