Skip to content

'I' in normal mode jumps to end instead of start of prompt #3541

@Doodler8888

Description

@Doodler8888

Description

When in Telescope's prompt buffer in normal mode, pressing 'I' moves the cursor to the end of the line instead of the beginning, which is inconsistent with standard Vim behavior.

Neovim version

NVIM v0.12.0-dev-1119+g582e0714b5
Build type: Release
LuaJIT 2.1.1753364724

Operating system and version

linux, debian 13 (trixie)

Telescope version / branch / rev

Telescope commit: b4da76b

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

Steps to reproduce

  1. nvim -u minimal.lua
  2. press <leader>ff
  3. type 'test' in the prompt
  4. go into the normal mode by pressing escape
  5. type 'I'

Expected behavior

the cursor goes to the start of the prompt

Actual behavior

it goes to the end of the prompt

Minimal config

vim.g.mapleader = " "

vim.pack.add({
  "https://github.com/nvim-lua/plenary.nvim",
  "https://github.com/nvim-telescope/telescope.nvim",
})

require("telescope").setup {}

vim.keymap.set("n", "<leader>ff", require("telescope.builtin").find_files)

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