Skip to content

Oldfiles picker discards remote files #3520

@speelbarrow

Description

@speelbarrow

Description

The oldfiles picker rules out any remote (e.g. "sftp://") files from the list.

Neovim version

NVIM v0.11.3
Build type: Release
LuaJIT 2.1.1741730670

Operating system and version

macOS 26

Telescope version / branch / rev

master

checkhealth telescope

==============================================================================
telescope:                                                                1 ⚠️

Checking for required plugins ~
- ✅ OK plenary installed.
- ✅ OK nvim-treesitter installed.

Checking external dependencies ~
- ✅ OK rg: found ripgrep 14.1.1
- ⚠️ WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities

===== Installed extensions ===== ~

Telescope Extension: `file_browser` ~
- No healthcheck provided

Steps to reproduce

  1. Open a remote file (e.g. sftp://..., scp://..., etc.)
  2. Close the file
  3. :oldfiles - the file is present in the list
  4. :Telescope oldfiles - the file is not present in the list

Expected behavior

Expected the file to be present in the :Telescope oldfiles list

Actual behavior

The file is not present in the :Telescope oldfiles list

Minimal config

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
  vim.fn.system {
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  }
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "nvim-telescope/telescope.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
    },
    config = function()
      -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
      require("telescope").setup {}
    end,
  },
}

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions