nvim-telescope / telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
MIT License
773 stars 37 forks source link

Fuzzy searching fails with matching capital characters but matches with all lowercase #206

Closed Tired-Fox closed 2 months ago

Tired-Fox commented 4 months ago

When I attempt to search for a file with capital characters in the name the search fails and returns nothing. However, if I enter all lowercase the search returns the expected file.

delphinus commented 4 months ago
  1. At first, this picker does not do fuzzy matching in default. Have you set matcher = "fuzzy" in your opts?
  2. If not, whether you can use capital characters in searching depends on 'smartcase' option. See :h telescope-frecency-usage or https://github.com/nvim-telescope/telescope.nvim/pull/2950.
Tired-Fox commented 4 months ago

Well my problem occurs when trying to do an exact match. Using any capital characters results in a blank result. However, using all lower case characters results in a fuzzy match

Tired-Fox commented 4 months ago

I have both smartcase and fuzzy matching turned on

delphinus commented 2 months ago

I cannot reproduce this with minimal config below.

minimal init.lua ```lua local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system { "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, } end vim.opt.rtp:prepend(lazypath) require("lazy").setup { { "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope-frecency.nvim" }, config = function() local telescope = require "telescope" telescope.setup { extensions = { frecency = { matcher = "fuzzy", }, }, } telescope.load_extension "frecency" local builtin = require "telescope.builtin" vim.keymap.set("n", "", telescope.extensions.frecency.frecency) end, }, } ```
スクリーンショット 2024-07-13 23 38 19

Please write your minimal setup for reproducible way.

Tired-Fox commented 2 months ago

This seems to have been fixed in recent updates. When I posted the original issue it was broken. Now it is working for me as well