skywind3000 / skywind3000/z.lua

_ZL_FZF_FLAG doesn't work

Open
#190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Lets say I defined export _ZL_FZF_FLAG="+s -e +i. And I expected this should trigger case-sensitive search to ~/.zlua, but seems it does not.

Here is a simple example I made.

z -l Dat
0.5        ~/work/data
24         ~/work/DataAnalysis
89.5      ~/work/output/date
1256     ~/work/log/data

As you can see, I validated _ZL_FZF_FLAG by using z -l, and found it's actually case-insensitive.

I have tried using fzf directly with explicit -i flag like this cat ~/.zlua | fzf +i, and it works perfectly.

Maybe there is something I missed or I made mistakes, I'm not sure.

Thanks for any help.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how _ZL_FZF_FLAG is read when running z -l and how the ~/.zlua data is passed to fzf. Reproduce the example with +s -e +i and compare it with direct fzf usage; done means the flag produces case-sensitive results such as distinguishing Dat from DataAnalysis.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, zsh
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.