Skip to content

feat(jumplist): add select_last_used option (closes #2947)#2948

Open
atusy wants to merge 1 commit into
nvim-telescope:masterfrom
atusy:jumplist-select-last-used
Open

feat(jumplist): add select_last_used option (closes #2947)#2948
atusy wants to merge 1 commit into
nvim-telescope:masterfrom
atusy:jumplist-select-last-used

Conversation

@atusy

@atusy atusy commented Feb 25, 2024

Copy link
Copy Markdown
Contributor

just like buffers picker has select_current option (#2918)

Description

Please include a summary of the change and which issue is fixed. Please also
include relevant motivation and context

Fixes #2947

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration

  • Test the last used position becomes a default selection index by
    1. start Neovim
    2. Do require("telescope.builtin").jumplist({ select_last_used = true }) and confirm the default selection index is 1
    3. Do <C-O>
    4. Do require("telescope.builtin").jumplist({ select_last_used = true }) and confirm the default selection index is 2

Configuration:

  • Neovim version (nvim --version):

NVIM v0.10.0-dev-2273+g21df0cdb8
Build type: RelWithDebInfo
LuaJIT 2.1.1706708390
Run "nvim -V1 -v" for more info

  • Operating system and version:

Manjaro Linux

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

just like buffers picker has select_current option (nvim-telescope#2918)
@atusy atusy force-pushed the jumplist-select-last-used branch from fb64f64 to 1dffb15 Compare April 12, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allow jumplist picker to optionally select last used location on new()

1 participant