Commit Graph

285 Commits

Author SHA1 Message Date
Junegunn Choi
3e6e0528a6
[install] grep -> \grep 2024-12-01 23:22:36 +09:00
buttering
ac508a1ce4
Enhance install script to handle commented and uncommented lines (#3632) (#4112)
* Enhance install script to handle commented and uncommented lines (#3632)

Resolves #3632

Enhance install script to handle commented and uncommented lines in shell file with user prompts for modification.
- Track commented and uncommented lines in the file.
- Prompt user to append or skip if the line is commented.
- Ensure new lines are added only when necessary, based on user input.
- To the `fish_user_key_bindings.fish`, the original logic would append the line to the end if no corresponding statement was found. I’ve adopted the same behavior for commented lines.

* Refactor append_line function to improve line existence check.

- Replaced `lno` variable with `lines` to store matching lines and simplified the logic.
- Improved line existence check, now prints all matching lines directly and handles commented lines separately.
- Removed unnecessary variables like `all_commented`, `commented_lines`, and `non_commented_lines`.

* Fix indentation

---------

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2024-12-01 23:21:12 +09:00
Junegunn Choi
add1aec685
0.56.3 2024-11-15 10:06:01 +09:00
Junegunn Choi
215ab48222
0.56.2 2024-11-12 00:57:55 +09:00
Junegunn Choi
64c61603e9
0.56.1 2024-11-10 23:15:35 +09:00
Junegunn Choi
ff1687744d
0.56.0 2024-10-27 12:03:01 +09:00
Junegunn Choi
fc69308057
0.55.0 2024-08-29 17:10:58 +09:00
Junegunn Choi
af4917dbb6
0.54.3 2024-07-31 21:51:54 +09:00
Junegunn Choi
b896e0d314
0.54.2 2024-07-26 17:44:09 +09:00
Junegunn Choi
50fa90dfb8
0.54.1 2024-07-19 17:10:49 +09:00
Junegunn Choi
9e92b6f11e
0.54.0
New tags will have `v` prefix.

* https://github.com/junegunn/fzf/issues/2879
* https://github.com/golang/go/issues/32945

Close #2879
2024-07-08 22:51:48 +09:00
Junegunn Choi
c4a9ccd6af
0.53.0 2024-06-06 22:03:26 +09:00
LangLangBart
030428ba43
docs: update zsh integration instructions (#3794) 2024-05-15 01:59:43 +09:00
Junegunn Choi
6432f00f0d
0.52.1 2024-05-14 01:54:30 +09:00
Junegunn Choi
bcda25a513
0.52.0 2024-05-08 00:15:30 +09:00
Junegunn Choi
ed511d7867
[install] tar --no-same-owner
Close #3776
2024-05-07 20:00:13 +09:00
Junegunn Choi
260a65b0fb
0.51.0 2024-05-01 14:14:06 +09:00
Junegunn Choi
f97d275413
0.50.0 2024-04-15 00:02:27 +09:00
Junegunn Choi
62963dcefd
0.49.0 2024-04-05 00:20:26 +09:00
Junegunn Choi
d579e335b5
0.48.1 2024-03-17 16:35:35 +09:00
Junegunn Choi
091b7eacba
0.48.0 2024-03-14 00:02:53 +09:00
Junegunn Choi
e74b1251c0
Embed shell integration scripts in fzf binary (--bash / --zsh / --fish) (#3675)
This simplifies the distribution, and the users are less likely to have
problems caused by using incompatible scripts and binaries.

    # Set up fzf key bindings and fuzzy completion
    eval "$(fzf --bash)"

    # Set up fzf key bindings and fuzzy completion
    eval "$(fzf --zsh)"

    # Set up fzf key bindings
    fzf --fish | source
2024-03-13 23:59:34 +09:00
Junegunn Choi
98ee5e651a
0.47.0 2024-03-10 21:43:41 +09:00
Junegunn Choi
3c0a630475
0.46.1 2024-02-01 18:13:00 +09:00
Junegunn Choi
beb2de2dd9
0.46.0 2024-01-23 23:47:24 +09:00
Junegunn Choi
2024010119
0.45.0 2024-01-01 15:38:35 +09:00
Junegunn Choi
d7d2ac3951
0.44.1 2023-11-17 19:17:00 +09:00
Junegunn Choi
7320b7df62
0.44.0 2023-11-12 22:08:08 +09:00
Junegunn Choi
d3311d9f43
0.43.0 2023-10-15 01:56:05 +09:00
Junegunn Choi
a0d61b4c37
[install] Remove redundant interactiveness check
Related #3449

/cc @calestyo
2023-10-09 10:00:55 +09:00
Junegunn Choi
5f66786ef1
[install] Replace go get with go install
Fix #3365
2023-08-26 20:00:16 +09:00
Junegunn Choi
d471067e3f
0.42.0 2023-06-15 00:37:41 +09:00
Junegunn Choi
6eb1874c5a
0.41.1 2023-05-27 15:54:22 +09:00
Junegunn Choi
098ef4d7cf
0.41.0 2023-05-26 00:25:09 +09:00
Junegunn Choi
fb76893e18
0.40.0 2023-05-01 01:59:21 +09:00
Junegunn Choi
20230402d0
0.39.0 2023-04-02 23:33:37 +09:00
Junegunn Choi
57ad21e4bd Build and release s390x binaries 2023-02-22 14:31:41 +09:00
Junegunn Choi
352ea07226
0.38.0 2023-02-15 23:24:42 +09:00
Junegunn Choi
2023012408
0.37.0 2023-01-24 22:11:14 +09:00
Junegunn Choi
2023011763
0.36.0 2023-01-17 01:33:05 +09:00
Philipp Wagner
de0da86bd7
Add ppc64le binaries (#3067)
Little-endian 64 bit PowerPC (ppc64le) is the "normal" PowerPC
architecture supported by standard Linux distributions (RedHat, SUSE,
Ubuntu, etc.).

Add support for this architecture in the install script, and add binary
builds for it as well.
2022-12-23 15:41:13 +09:00
Junegunn Choi
b55f555487
0.35.1 2022-11-18 20:42:56 +09:00
Junegunn Choi
d01ae55109
0.35.0 2022-11-12 00:58:06 +09:00
Junegunn Choi
04d0b0223f
0.34.0 2022-09-28 23:22:31 +09:00
Junegunn Choi
e03ac3136e
0.33.0 2022-08-29 07:23:14 +09:00
Junegunn Choi
4993d19466
0.32.1 2022-08-08 23:57:32 +09:00
Junegunn Choi
f7e7259910
0.32.0 2022-08-02 21:56:14 +09:00
Junegunn Choi
ecc418ba77
0.31.0 2022-07-21 23:04:57 +09:00
Tanish Yadav
2707af403a
[shell] Don't export PATH in ~/.fzf.{bash,zsh} (#2852)
There is no use exporting PATH when it is already exported. Moreover, it
causes things like `typeset -U path` in zsh to break if done before
sourcing "~/.fzf.zsh".
2022-06-24 16:53:51 +09:00
Junegunn Choi
2093667548
0.30.0 2022-04-04 23:01:43 +09:00