260723.2 · 511651f198068ef5841ee1635ade58daa2486ef7
fix(files): opts.ignore_current_file force make_entry.file
reading declarations
@@ -964,6 +964,7 @@ function M.normalize_opts(opts, globals, __resume_key) ---@diagnostic disable and (opts.git_icons or opts.file_icons or opts.file_ignore_patterns+ or opts.ignore_current_file or opts.strip_cwd_prefix or opts.render_crlf or opts.path_shorten
@@ -190,6 +190,24 @@ T["files"]["preview should work after chdir #1864"] = function() }) end +T["files"]["ignore_current_file without icons #2788"] = function()+ exec_lua([[vim.cmd.edit("LICENSE")]])+ helpers.FzfLua.files(child, {+ __expect_lines = true,+ __screen_opts = { ignore_text = { 6, 28 } },+ debug = 1,+ hidden = false,+ file_icons = false,+ git_icons = false,+ ignore_current_file = true,+ previewer = false,+ cwd_prompt = false,+ multiprocess = true,+ cmd = "rg --files --sort=path -g !tests/**",+ query = "LICENSE",+ })+end+ T["files"]["nop on nothing match"] = function() reload({ "hide" }) local ctx = exec_lua([[return FzfLua.utils.CTX()]])
tests/screenshots/tests-files_spec.lua---files---ignore_current_file-without-icons-#2788
@@ -0,0 +1,29 @@+--|---------|---------|---------|---------|---------|---------|----+01|MIT License +02| +03|Copyrig╭───────────────────── Files ─────────────────────╮ +04| │> LICENSE 0/90 (0) │ +05|Permiss│──────────────────────────────────────────────── │n obta+06|ining a│ │ +07|of this│ │Softwa+08|re"), t│ │ +09|in the │ │itatio+10|n the r│ │ +11|to use,│ │se, an+12|d/or se│ │ +13|copies │ │Softwa+14|re is │ │ +15|furnish│ │ +16| │ │ +17|The abo│ │l be i+18|ncluded│ │ +19|copies │ │ +20| │ │ +21|THE SOF│ │KIND, +22|EXPRESS╰─────────────────────────────────────────────────╯ +23|IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCH@@@+24|LICENSE 1,1 Top+25| +26| +27| +28|-- TERMINAL -- 1,10 All