Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions.delete_mark can't map key #3115

Closed
PhoenixPtt opened this issue May 18, 2024 · 6 comments
Closed

actions.delete_mark can't map key #3115

PhoenixPtt opened this issue May 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@PhoenixPtt
Copy link

Description

expect to map a key to action of delete mark, but failed

Neovim version

nvim 0.9.5

Operating system and version

ubuntu22.04

Telescope version / branch / rev

telescope 0.1.6

checkhealth telescope

heathy

Steps to reproduce

  1. config the keymap
  2. reopen nvim

Expected behavior

map key success

Actual behavior

report error like this:
image

Minimal config

mappings = {
					i = {
						["<C-m>"] = actions.delete_mark,
					},
					n = {
					},
},
@PhoenixPtt PhoenixPtt added the bug Something isn't working label May 18, 2024
@sineptic
Copy link

There are no delete_mark action.

:h telescope.actions -- to see all actions

@sineptic
Copy link

Maybe you need remove_selection?

@PhoenixPtt
Copy link
Author

PhoenixPtt commented May 23, 2024

There are no delete_mark action.

:h telescope.actions -- to see all actions

I know why, I use the 0.1.x branch, but I read the document of the master branch. the action of delete_marks exists in the master branch but not the 0.1.x branch.
Thank you for your reply!

@PhoenixPtt
Copy link
Author

PhoenixPtt commented May 23, 2024

I use the master branch, and mapping dm to action delete_marks in normal mode, then I can delete marks successfully. But when I close nvim and open it again, I find the marks that I think I have deleted are still there, Why?

@jamestrew
Copy link
Contributor

Some marks have special meaning and they're automatically set by vim. There's not much point to deleting them.

The m{a-zA-Z} marks are generally the ones you set manually and therefore have most control over deleting them and it staying delete (until you set them again).

@PhoenixPtt
Copy link
Author

Some marks have special meaning and they're automatically set by vim. There's not much point to deleting them.

The m{a-zA-Z} marks are generally the ones you set manually and therefore have most control over deleting them and it staying delete (until you set them again).

ok,thank you for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants