@ 261105.2

250720.16 · 55a1b767e1b6b72e3fd73ee415ec93cba5f0b1d9

ci: headless script tests

reading declarations

.github/workflows/ci.yaml

@@ -21,7 +21,9 @@ jobs:         rev: [nightly, v0.11.3]         include:           - os: macos-latest-            install-deps: brew update && brew install fzf ripgrep fd+            install-deps: |+              brew update && brew install fzf ripgrep fd gnu-getopt+              brew link --force gnu-getopt           - os: windows-latest             install-deps: choco install fzf ripgrep fd           - os: ubuntu-latest

scripts/devicons.lua

new file mode 100644@@ -0,0 +1,27 @@+require("nvim-web-devicons").setup({+  override_by_extension = {+    sol = {+      -- icon = "♦",+      icon = "",+      color = "#a074c4",+      name = "Sol"+    },+    sh = {+      icon = "",+      color = "#89e051",+      cterm_color = "113",+      name = "Sh",+    },+    md = {+      icon = "󰍔",+      color = "#dddddd",+      cterm_color = "239",+      name = "Md",+    },+    norg = {+      icon = "",+      color = "#97eefc",+      name = "Neorg",+    },+  },+})

scripts/headless_fd.sh

@@ -1,6 +1,7 @@ #!/bin/sh  BASEDIR=$(cd "$(dirname "$0")" ; pwd -P)+GETOPT=getopt  usage() {     echo "Usage: $0 [options]"@@ -12,26 +13,31 @@ usage() {     echo "Display Options"     echo "-c, --cwd             Working Directory"     echo "-x, --cmd             Executed Command (default: fd --color=never)"-    echo "-g, --git-icons       Git icons [0|1|false|true] (default:false)"-    echo "-f, --file-icons      File icons [0|1|false|true] (default:true)"-    echo "--color               Color icons [0|1|false|true] (default:true)"+    echo "-g, --git-icons       Git icons [false|true] (default:false)"+    echo "-f, --file-icons      File icons [false|true] (default:true)"+    echo "--color               Color icons [false|true] (default:true)" }  # saner programming env: these switches turn some bugs into errors set -o noclobber -o nounset +# MacOs: `brew install gnu-getopt && brew link --force gnu-getopt`+if [ -x /usr/local/bin/getopt ]; then+    GETOPT=/usr/local/bin/getopt+fi+ # -allow a command to fail with !’s side effect on errexit # -use return value from ${PIPESTATUS[0]}, because ! hosed $?-getopt --test > /dev/null +$GETOPT --test > /dev/null  if [ $? -ne 4 ]; then-    echo '`getopt --test` failed in this environment.'+    echo "`$GETOPT --test` failed in this environment."     exit 1 fi  OPTIONS=hd:c:x:f:g: LONGOPTS=help,debug:,cwd:,file-icons:,git-icons:,color:,cmd: -PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")+PARSED=$($GETOPT --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@") if [ $? -ne 0 ]; then     # e.g. return value is 1     #  then getopt has complained about wrong arguments to stdout@@ -55,17 +61,7 @@ while true; do             exit 0             ;;         -d|--debug)-            case $2 in-                "2"|"v"|"verbose")-                    debug="v"-                    ;;-                "1"|"true")-                    debug="true"-                    ;;-                *)-                    debug="false"-                    ;;-            esac+            debug="$2"             shift 2             ;;         -c|--cwd)@@ -78,35 +74,21 @@ while true; do             ;;         -f|--file-icons)             case $2 in-                "0"|"false")-                    file_icons="false"+                "true"|"srv"|"mini"|"devicons")+                    file_icons="$2"                     ;;                 *)-                    file_icons="true"+                    file_icons="nil"                     ;;             esac             shift 2             ;;         -g|--git-icons)-            case $2 in-                "0"|"false")-                    git_icons="false"-                    ;;-                *)-                    git_icons="true"-                    ;;-            esac+            git_icons="$2"             shift 2             ;;         --color)-            case $2 in-                "0"|"false")-                    color_icons="false"-                    ;;-                *)-                    color_icons="true"-                    ;;-            esac+            color_icons="$2"             shift 2             ;;         --)@@ -129,18 +111,38 @@ if [ $# -gt 0 ]; then     exit 4 fi -VIMRUNTIME=/usr/share/nvim/runtime \-/usr/bin/nvim -u NONE -l ${BASEDIR}/../lua/fzf-lua/spawn.lua "return+ICONS_PATH=nil+ICONS_SETUP=nil++if [ $file_icons != "nil" ]; then+    if [ $file_icons != "mini" ]; then+        if [ -d "${BASEDIR}/../deps/nvim-web-devicons" ]; then+            ICONS_PATH="${BASEDIR}/../deps/nvim-web-devicons"+        else+            ICONS_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lazy/nvim-web-devicons"+        fi+        ICONS_SETUP="${BASEDIR}/devicons.lua"+    else+        if [ -d "${BASEDIR}/../deps/mini.nvim" ]; then+            ICONS_PATH="${BASEDIR}/../deps/mini.nvim"+        else+            ICONS_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lazy/mini.nvim"+        fi+    fi+fi++# VIMRUNTIME=/usr/share/nvim/runtime \+nvim -u NONE -l ${BASEDIR}/../lua/fzf-lua/spawn.lua "return   -- opts   {     g = {-      --_fzf_lua_server = [[/run/user/1000/fzf-lua.1710687343.12851.1]],-      _devicons_path = [[${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lazy/nvim-web-devicons]],-      _devicons_setup = [[${XDG_CONFIG_HOME:-$HOME/.config}/nvim/lua/plugins/devicons/setup.lua]],+      _fzf_lua_server = #[[${FZF_LUA_SERVER:-}]] > 0 and [[${FZF_LUA_SERVER:-}]] or nil,+      _devicons_path = [[${ICONS_PATH}]],+      _devicons_setup = [[${ICONS_SETUP}]],     },     _base64 = false,     debug = [[$debug]] == [[v]] and [[v]] or $debug,-    file_icons = ${file_icons},+    file_icons = [[${file_icons}]] == true or [[${file_icons}]],     git_icons = ${git_icons},     color_icons = ${color_icons},     cmd = [[${cmd:-fd --color=never}]],

tests/files_spec.lua

@@ -47,7 +47,10 @@ T["files"]["multiprocess"] = new_set({ parametrize = { { false }, { true } } },       previewer = false,       cwd_prompt = false,       multiprocess = multiprocess,-      cmd = "rg --files --sort=path -g !tests/**",+      -- Test file_ignore_patterns instead of rg filter+      file_ignore_patterns = { "^tests" },+      cmd = "rg --files --sort=path",+      -- cmd = "rg --files --sort=path -g !tests/**",     })   end, })@@ -110,7 +113,10 @@ T["files"]["icons"]["defaults"] = new_set({ parametrize = { { "+attrs" }, { "-at       previewer = false,       cwd_prompt = false,       file_icons = icons,-      cmd = "rg --files --sort=path -g !tests/**",+      -- Test file_ignore_patterns instead of rg filter+      file_ignore_patterns = { "^tests" },+      cmd = "rg --files --sort=path",+      -- cmd = "rg --files --sort=path -g !tests/**",     })   end, })

tests/headless_spec.lua

new file mode 100644@@ -0,0 +1,90 @@+---@diagnostic disable: unused-local, unused-function+local MiniTest = require("mini.test")+local helpers = require("fzf-lua.test.helpers")+local child = helpers.new_child_neovim()+local expect, eq = helpers.expect, helpers.expect.equality+local new_set = MiniTest.new_set++local _mini_path = vim.fs.joinpath(vim.fn.stdpath("data"), "lazy", "mini.nvim")+if not vim.uv.fs_stat(_mini_path) then+  _mini_path = vim.fs.joinpath("deps", "mini.nvim")+end++local _devicons_path = vim.fs.joinpath(vim.fn.stdpath("data"), "lazy", "nvim-web-devicons")+if not vim.uv.fs_stat(_devicons_path) then+  _devicons_path = vim.fs.joinpath("deps", "nvim-web-devicons")+end++local T = helpers.new_set_with_child(child, {+  hooks = {+    pre_case = function()+      child.o.shell = "/bin/sh"+      child.o.termguicolors = true+      child.o.background = "dark"+      child.lua([[M = { devicons = require("fzf-lua.devicons") }]])+    end,+  },+})++T["headless"] = new_set({})++T["headless"]["file_icons"] = new_set()++local exec_term = function(c, cmd, args)+  cmd = cmd or {}+  args = args or {}+  args.term = true+  local serpent = require "fzf-lua.lib.serpent"+  cmd = serpent.block(cmd, { comment = false, sortkeys = false })+  args = serpent.block(args, { comment = false, sortkeys = false })+  local id = c.lua_get(string.format("vim.fn.jobstart(%s, %s)", cmd, args))+  eq(tonumber(id) > 0, true)+  c.lua(string.format("vim.fn.jobwait({%s})", tostring(id)))+  c.wait_until(function()+    local lines = c.get_lines()+    for i = #lines, 1, -1 do+      if lines[i] == "" then+        table.remove(lines, i)+      end+    end+    return lines[#lines] == "[Process exited 0]"+  end)+end++T["headless"]["file_icons"]["devicons - manual"] = new_set({ parametrize = { { false }, { true } } },+  {+    function(icons)+      helpers.SKIP_IF_WIN()+      -- helpers.SKIP_IF_NOT_LINUX()+      exec_term(child,+        { "./scripts/headless_fd.sh", "-x", "rg --files --sort=path", "-f", tostring(icons) })+      child.expect_screenshot({ ignore_text = { 24 }, ignore_attr = { 25 } })+    end,+  })++T["headless"]["file_icons"]["server"] = new_set({ parametrize = { { "devicons" }, { "mini" } } }, {+  function(icons)+    helpers.SKIP_IF_WIN()+    -- helpers.SKIP_IF_NOT_LINUX()+    if icons == "mini" then+      child.lua("vim.opt.runtimepath:append(...)", { _mini_path })+      child.lua([[require("mini.icons").setup({})]])+    else+      child.lua("vim.opt.runtimepath:append(...)", { _devicons_path })+      child.lua([[ require("nvim-web-devicons").setup({})]])+    end+    child.lua([[M.devicons.load()]])+    eq(child.lua_get([[M.devicons.plugin_name()]]), icons)+    local fzf_lua_server = child.lua_get("vim.g.fzf_lua_server")+    eq(#fzf_lua_server > 0, true)+    local new_child = helpers.new_child_neovim()+    new_child.start()+    exec_term(new_child,+      { "./scripts/headless_fd.sh", "-x", "rg --files --sort=path", "-f", icons },+      { env = { ["FZF_LUA_SERVER"] = fzf_lua_server } })+    -- Ignore script path and attr the next line+    new_child.expect_screenshot({ ignore_text = { 23 }, ignore_attr = { 24 } })+  end,+})++return T

tests/screenshots/tests-api_spec.lua---api---fzf_exec---rg---1-+-args-{-1-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭─────────────────────────────────────────────────╮      -04|~      │>                                          82/82 │      +04|~      │>                                          83/83 │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ LICENSE                                       ││       07|~      │  Makefile                                      ││      

tests/screenshots/tests-api_spec.lua---api---fzf_exec---rg---1-+-args-{-false-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭─────────────────────────────────────────────────╮      -04|~      │>                                          83/83 │      +04|~      │>                                          84/84 │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [st] rg --files -g !.git -g !tests/*··││       07|~      │  LICENSE                                       ││      

tests/screenshots/tests-api_spec.lua---api---fzf_exec---rg---1-+-args-{-true-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭─────────────────────────────────────────────────╮      -04|~      │>                                          83/83 │      +04|~      │>                                          84/84 │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [mt] rg --files -g !.git -g !tests/*··││       07|~      │  LICENSE                                       ││      

tests/screenshots/tests-files_spec.lua---files---close-abort---1-+-args-{-'-c-c-'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [mt] rg --files --sort=path -g !test··││       07|~      │  LICENSE                                       ││      

tests/screenshots/tests-files_spec.lua---files---close-abort---1-+-args-{-'-esc-'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [mt] rg --files --sort=path -g !test··││       07|~      │  LICENSE                                       ││      

tests/screenshots/tests-files_spec.lua---files---executable---1-+-args-{-'fd'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭─────────────────── Files  h ────────────────────╮      -04|~      │>                                      95/95 (0) │      +04|~      │>                                      96/96 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [mt] fd --hidden --color=never --typ··││       07|~      │  .editorconfig                                 ││      

tests/screenshots/tests-files_spec.lua---files---executable---1-+-args-{-'find-dir'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      95/95 (0) │      +04|~      │>                                      96/96 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [mt] find . -type f \! -path '*/.git··││       07|~      │  .editorconfig                                 ││      

tests/screenshots/tests-files_spec.lua---files---executable---1-+-args-{-'rg'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭─────────────────── Files  h ────────────────────╮      -04|~      │>                                      95/95 (0) │      +04|~      │>                                      96/96 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌ [DEBUG] [mt] rg --hidden --files -g "!.git" ··││       07|~      │  .editorconfig                                 ││      

tests/screenshots/tests-files_spec.lua---files---icons---defaults---1-+-args-{-'devicons',-'+attrs'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      82/82 (0) │      +04|~      │>                                      83/83 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌  LICENSE                                     ││       07|~      │   Makefile                                    ││      

tests/screenshots/tests-files_spec.lua---files---icons---defaults---1-+-args-{-'devicons',-'-attrs'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      82/82 (0) │      +04|~      │>                                      83/83 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌  LICENSE                                     ││       07|~      │   Makefile                                    ││      

tests/screenshots/tests-files_spec.lua---files---icons---defaults---1-+-args-{-'mini',-'+attrs'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      82/82 (0) │      +04|~      │>                                      83/83 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌  LICENSE                                     ││       07|~      │  󱁤 Makefile                                    ││      

tests/screenshots/tests-files_spec.lua---files---icons---defaults---1-+-args-{-'mini',-'-attrs'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      82/82 (0) │      +04|~      │>                                      83/83 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │▌  LICENSE                                     ││       07|~      │  󱁤 Makefile                                    ││      

tests/screenshots/tests-files_spec.lua---files---multiprocess---1-+-args-{-false-}

@@ -2,9 +2,9 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │      -06|~      │▌ [DEBUG] [st] rg --files --sort=path -g !test··││      +06|~      │▌ [DEBUG] [st] rg --files --sort=path           ││       07|~      │  LICENSE                                       ││       08|~      │  Makefile                                      ││       09|~      │  OPTIONS.md                                     │      

tests/screenshots/tests-files_spec.lua---files---multiprocess---1-+-args-{-true-}

@@ -2,9 +2,9 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │      -06|~      │▌ [DEBUG] [mt] rg --files --sort=path -g !test··││      +06|~      │▌ [DEBUG] [mt] rg --files --sort=path           ││       07|~      │  LICENSE                                       ││       08|~      │  Makefile                                      ││       09|~      │  OPTIONS.md                                     │      

tests/screenshots/tests-files_spec.lua---files---preview-should-work-after-chdir-#1864

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      82/82 (0) │      +04|~      │>                                      83/83 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │  LICENSE                                       ││       07|~      │▌ Makefile                                       │      

tests/screenshots/tests-files_spec.lua---files---previewer---builtin---1-+-args-{-false,-'builtin'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │  [DEBUG] [mt] rg --files --sort=path -g !test··││       07|~      │▌ LICENSE                                        │      

tests/screenshots/tests-files_spec.lua---files---previewer---builtin---1-+-args-{-false,-'ci'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │  [DEBUG] [mt] rg --files --sort=path -g !test··││       07|~      │▌ LICENSE                                        │      

tests/screenshots/tests-files_spec.lua---files---previewer---builtin---1-+-args-{-true,-'builtin'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │  [DEBUG] [mt] rg --files --sort=path -g !test··││       07|~      │▌  LICENSE                                      │      

tests/screenshots/tests-files_spec.lua---files---previewer---builtin---1-+-args-{-true,-'ci'-}

@@ -2,7 +2,7 @@ 01|                                                                 02|~                                                                03|~      ╭───────────────────── Files ─────────────────────╮      -04|~      │>                                      83/83 (0) │      +04|~      │>                                      84/84 (0) │       05|~      │──────────────────────────────────────────────── │       06|~      │  [DEBUG] [mt] rg --files --sort=path -g !test··││       07|~      │▌  LICENSE                                      │      

tests/screenshots/tests-headless_spec.lua---headless---file_icons---devicons---manual---1-+-args-{-false-}

new file mode 100644@@ -0,0 +1,59 @@+--|---------|---------|---------|---------|---------|---------|----+01| devicons.lua                                                   +02| fzf-lua-scm-1.rockspec                                         +03| headless_fd.sh                                                 +04| init.lua                                                       +05| make_cli.lua                                                   +06| mini.sh                                                        +07| minimal_init.lua                                               +08|                                                                +09|[Process exited 0]                                              +10|                                                                +11|                                                                +12|                                                                +13|                                                                +14|                                                                +15|                                                                +16|                                                                +17|                                                                +18|                                                                +19|                                                                +20|                                                                +21|                                                                +22|                                                                +23|                                                                +24|</Sources/nvim/fzf-lua/scripts/headless_fd.sh 1,1            All+25|                                                                +26|                                                                +27|                                                                +28|                                                                ++--|---------|---------|---------|---------|---------|---------|----+01|0000000000000000000000000000000000000000000000000000000000000000+02|0000000000000000000000000000000000000000000000000000000000000000+03|0000000000000000000000000000000000000000000000000000000000000000+04|0000000000000000000000000000000000000000000000000000000000000000+05|0000000000000000000000000000000000000000000000000000000000000000+06|0000000000000000000000000000000000000000000000000000000000000000+07|0000000000000000000000000000000000000000000000000000000000000000+08|0000000000000000000000000000000000000000000000000000000000000000+09|0000000000000000000000000000000000000000000000000000000000000000+10|0000000000000000000000000000000000000000000000000000000000000000+11|0000000000000000000000000000000000000000000000000000000000000000+12|0000000000000000000000000000000000000000000000000000000000000000+13|0000000000000000000000000000000000000000000000000000000000000000+14|0000000000000000000000000000000000000000000000000000000000000000+15|0000000000000000000000000000000000000000000000000000000000000000+16|0000000000000000000000000000000000000000000000000000000000000000+17|0000000000000000000000000000000000000000000000000000000000000000+18|0000000000000000000000000000000000000000000000000000000000000000+19|0000000000000000000000000000000000000000000000000000000000000000+20|0000000000000000000000000000000000000000000000000000000000000000+21|0000000000000000000000000000000000000000000000000000000000000000+22|0000000000000000000000000000000000000000000000000000000000000000+23|0000000000000000000000000000000000000000000000000000000000000000+24|1111111111111111111111111111111111111111111111111111111111111111+25|0000000000000000000000000000000000000000000000000000000000000000+26|0000000000000000000000000000000000000000000000000000000000000000+27|0000000000000000000000000000000000000000000000000000000000000000+28|0000000000000000000000000000000000000000000000000000000000000000

tests/screenshots/tests-headless_spec.lua---headless---file_icons---devicons---manual---1-+-args-{-true-}

new file mode 100644@@ -0,0 +1,59 @@+--|---------|---------|---------|---------|---------|---------|----+01| devicons.lua                                                  +02| fzf-lua-scm-1.rockspec                                        +03| headless_fd.sh                                                +04| init.lua                                                      +05| make_cli.lua                                                  +06| mini.sh                                                       +07| minimal_init.lua                                              +08|                                                                +09|[Process exited 0]                                              +10|                                                                +11|                                                                +12|                                                                +13|                                                                +14|                                                                +15|                                                                +16|                                                                +17|                                                                +18|                                                                +19|                                                                +20|                                                                +21|                                                                +22|                                                                +23|                                                                +24|</Sources/nvim/fzf-lua/scripts/headless_fd.sh 1,1            All+25|                                                                +26|                                                                +27|                                                                +28|                                                                ++--|---------|---------|---------|---------|---------|---------|----+01|0111111111111111111111111111111111111111111111111111111111111111+02|2111111111111111111111111111111111111111111111111111111111111111+03|3111111111111111111111111111111111111111111111111111111111111111+04|0111111111111111111111111111111111111111111111111111111111111111+05|0111111111111111111111111111111111111111111111111111111111111111+06|3111111111111111111111111111111111111111111111111111111111111111+07|0111111111111111111111111111111111111111111111111111111111111111+08|1111111111111111111111111111111111111111111111111111111111111111+09|1111111111111111111111111111111111111111111111111111111111111111+10|1111111111111111111111111111111111111111111111111111111111111111+11|1111111111111111111111111111111111111111111111111111111111111111+12|1111111111111111111111111111111111111111111111111111111111111111+13|1111111111111111111111111111111111111111111111111111111111111111+14|1111111111111111111111111111111111111111111111111111111111111111+15|1111111111111111111111111111111111111111111111111111111111111111+16|1111111111111111111111111111111111111111111111111111111111111111+17|1111111111111111111111111111111111111111111111111111111111111111+18|1111111111111111111111111111111111111111111111111111111111111111+19|1111111111111111111111111111111111111111111111111111111111111111+20|1111111111111111111111111111111111111111111111111111111111111111+21|1111111111111111111111111111111111111111111111111111111111111111+22|1111111111111111111111111111111111111111111111111111111111111111+23|1111111111111111111111111111111111111111111111111111111111111111+24|4444444444444444444444444444444444444444444444444444444444444444+25|1111111111111111111111111111111111111111111111111111111111111111+26|1111111111111111111111111111111111111111111111111111111111111111+27|1111111111111111111111111111111111111111111111111111111111111111+28|1111111111111111111111111111111111111111111111111111111111111111

tests/screenshots/tests-headless_spec.lua---headless---file_icons---server---1-+-args-{-'devicons'-}

new file mode 100644@@ -0,0 +1,51 @@+--|---------|---------|---------|---------|---------|---------|---------|---------|+01| devicons.lua                                                                  +02| fzf-lua-scm-1.rockspec                                                        +03| headless_fd.sh                                                                +04| init.lua                                                                      +05| make_cli.lua                                                                  +06| mini.sh                                                                       +07| minimal_init.lua                                                              +08|                                                                                +09|[Process exited 0]                                                              +10|                                                                                +11|                                                                                +12|                                                                                +13|                                                                                +14|                                                                                +15|                                                                                +16|                                                                                +17|                                                                                +18|                                                                                +19|                                                                                +20|                                                                                +21|                                                                                +22|                                                                                +23|<:/shared/bhagwan/Sources/nvim/fzf-lua/scripts/headless_fd.sh 1,1            All+24|                                                                                ++--|---------|---------|---------|---------|---------|---------|---------|---------|+01|01111111111111111111111111111111111111111111111111111111111111111111111111111111+02|21111111111111111111111111111111111111111111111111111111111111111111111111111111+03|31111111111111111111111111111111111111111111111111111111111111111111111111111111+04|01111111111111111111111111111111111111111111111111111111111111111111111111111111+05|01111111111111111111111111111111111111111111111111111111111111111111111111111111+06|31111111111111111111111111111111111111111111111111111111111111111111111111111111+07|01111111111111111111111111111111111111111111111111111111111111111111111111111111+08|11111111111111111111111111111111111111111111111111111111111111111111111111111111+09|11111111111111111111111111111111111111111111111111111111111111111111111111111111+10|11111111111111111111111111111111111111111111111111111111111111111111111111111111+11|11111111111111111111111111111111111111111111111111111111111111111111111111111111+12|11111111111111111111111111111111111111111111111111111111111111111111111111111111+13|11111111111111111111111111111111111111111111111111111111111111111111111111111111+14|11111111111111111111111111111111111111111111111111111111111111111111111111111111+15|11111111111111111111111111111111111111111111111111111111111111111111111111111111+16|11111111111111111111111111111111111111111111111111111111111111111111111111111111+17|11111111111111111111111111111111111111111111111111111111111111111111111111111111+18|11111111111111111111111111111111111111111111111111111111111111111111111111111111+19|11111111111111111111111111111111111111111111111111111111111111111111111111111111+20|11111111111111111111111111111111111111111111111111111111111111111111111111111111+21|11111111111111111111111111111111111111111111111111111111111111111111111111111111+22|11111111111111111111111111111111111111111111111111111111111111111111111111111111+23|44444444444444444444444444444444444444444444444444444444444444444444444444444444+24|11111111111111111111111111111111111111111111111111111111111111111111111111111111

tests/screenshots/tests-headless_spec.lua---headless---file_icons---server---1-+-args-{-'mini'-}

new file mode 100644@@ -0,0 +1,51 @@+--|---------|---------|---------|---------|---------|---------|---------|---------|+01|󰢱 devicons.lua                                                                  +02|󰢱 fzf-lua-scm-1.rockspec                                                        +03| headless_fd.sh                                                                +04| init.lua                                                                      +05|󰢱 make_cli.lua                                                                  +06| mini.sh                                                                       +07|󰢱 minimal_init.lua                                                              +08|                                                                                +09|[Process exited 0]                                                              +10|                                                                                +11|                                                                                +12|                                                                                +13|                                                                                +14|                                                                                +15|                                                                                +16|                                                                                +17|                                                                                +18|                                                                                +19|                                                                                +20|                                                                                +21|                                                                                +22|                                                                                +23|<:/shared/bhagwan/Sources/nvim/fzf-lua/scripts/headless_fd.sh 1,1            All+24|                                                                                ++--|---------|---------|---------|---------|---------|---------|---------|---------|+01|01111111111111111111111111111111111111111111111111111111111111111111111111111111+02|01111111111111111111111111111111111111111111111111111111111111111111111111111111+03|11111111111111111111111111111111111111111111111111111111111111111111111111111111+04|21111111111111111111111111111111111111111111111111111111111111111111111111111111+05|01111111111111111111111111111111111111111111111111111111111111111111111111111111+06|11111111111111111111111111111111111111111111111111111111111111111111111111111111+07|01111111111111111111111111111111111111111111111111111111111111111111111111111111+08|11111111111111111111111111111111111111111111111111111111111111111111111111111111+09|11111111111111111111111111111111111111111111111111111111111111111111111111111111+10|11111111111111111111111111111111111111111111111111111111111111111111111111111111+11|11111111111111111111111111111111111111111111111111111111111111111111111111111111+12|11111111111111111111111111111111111111111111111111111111111111111111111111111111+13|11111111111111111111111111111111111111111111111111111111111111111111111111111111+14|11111111111111111111111111111111111111111111111111111111111111111111111111111111+15|11111111111111111111111111111111111111111111111111111111111111111111111111111111+16|11111111111111111111111111111111111111111111111111111111111111111111111111111111+17|11111111111111111111111111111111111111111111111111111111111111111111111111111111+18|11111111111111111111111111111111111111111111111111111111111111111111111111111111+19|11111111111111111111111111111111111111111111111111111111111111111111111111111111+20|11111111111111111111111111111111111111111111111111111111111111111111111111111111+21|11111111111111111111111111111111111111111111111111111111111111111111111111111111+22|11111111111111111111111111111111111111111111111111111111111111111111111111111111+23|33333333333333333333333333333333333333333333333333333333333333333333333333333333+24|11111111111111111111111111111111111111111111111111111111111111111111111111111111