Skip to content

Conversation

RafaelDominiquini
Copy link
Contributor

I was trying to create a complex command and needed some variables to restore the state of application, but I saw that I could not find some variables because they were not implemented!
Mainly the "FZF_POINTER" variable! I believe it is important that it is accessible! I exported the others to maintain consistency only.

Other thing: The variable 'FZF_LIST_LABEL' was already being exported, but not documented in the manpage!

Thanks.

@junegunn
Copy link
Owner

Mainly the "FZF_POINTER" variable! I believe it is important that it is accessible!

Would you mind sharing your use case?

@Dominiquini
Copy link
Contributor

Dominiquini commented Apr 21, 2025

Mainly the "FZF_POINTER" variable! I believe it is important that it is accessible!

Would you mind sharing your use case?

I was playing with this application today and wanted to make a more sophisticated script that lists and kills applications in the system.
For this, I had to use this variable (FZF_POINTER) to store the state of the application (if it should list all applications running or just user applications).
I was already using the variable FZF_PROMPT to hold another state (if I show a detailed list or a simplified one).

The other variables (FZF * ​​LABEL) I exported because I thought it was missing, since some of them were already being exported and others did not. I couldn't think of any problem exporting more variables, so I did it!

If you think this is a bad idea, I ask you at least consider the "FZF_POINTER" variable!

Script: https://gist.github.com/Dominiquini/783863e0024f72275246b12056881e87

Thanks.

@junegunn
Copy link
Owner

junegunn commented Apr 22, 2025

I was a little concerned exporting too many variables would make process execution a little heavier. But I don't think the difference will be ever noticeable.

Not sure why the test is failing on CI as it passes locally. Let me look into it.

@Dominiquini
Copy link
Contributor

In my opinion, any attribute that is possible to change during execution using actions (change-, transform-), must have some way to read during execution!

Thank you for considering this suggestion and looking at it!

@junegunn junegunn merged commit 06ae9b0 into junegunn:master Apr 22, 2025
5 checks passed
@junegunn
Copy link
Owner

Merged, thanks!

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Apr 26, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [junegunn/fzf](https://github.com/junegunn/fzf) | patch | `v0.61.2` -> `v0.61.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>junegunn/fzf (junegunn/fzf)</summary>

### [`v0.61.3`](https://github.com/junegunn/fzf/releases/tag/v0.61.3): 0.61.3

[Compare Source](junegunn/fzf@v0.61.2...v0.61.3)

-   Reverted [#&#8203;4351](junegunn/fzf#4351) as it caused `tmux run-shell 'fzf --tmux'` to fail ([#&#8203;4559](https://github.com/junegunn/fzf/issues/4559) [#&#8203;4560](https://github.com/junegunn/fzf/issues/4560))
-   More environment variables for child processes ([#&#8203;4356](junegunn/fzf#4356))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNTcuOCIsInVwZGF0ZWRJblZlciI6IjM5LjI1Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
@RafaelDominiquini RafaelDominiquini deleted the patch-1 branch April 27, 2025 17:03
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

Successfully merging this pull request may close these issues.

3 participants