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

opening a session with telecope open the file not the session #3

Open
mtoons opened this issue Oct 9, 2023 · 3 comments
Open

opening a session with telecope open the file not the session #3

mtoons opened this issue Oct 9, 2023 · 3 comments

Comments

@mtoons
Copy link

mtoons commented Oct 9, 2023

nvim.telescope-session.problem.mp4
@rodhash
Copy link

rodhash commented Nov 2, 2023

same here

@rodhash
Copy link

rodhash commented Nov 2, 2023

Ok I guess I found the "issue".. it's a keybinding thing

In insert mode, Enter / <cr> has the following mapped which is the default coming from telescope:
telescope|select_default

In Normal mode, Enter / <cr> has:
telescopej|{"linedefined":38,"source":"@\/Users\/.....\/telescope-session.nvim\/lua\/session-manage\/init.lua"}

So..

  • Once you selected the desired session, press ESC (to enter Normal mode) and then press ENTER

Checking again the documentation noticed this extension provides only a Normal mode keybinding, it seems this is the expected behavior

I'd choose to keep just in insert mode if possible .. not sure if the plugin would have issues changing that

@p135246
Copy link

p135246 commented Mar 15, 2024

A solution is to add <esc> after the definition of your key-binding like this nnoremap <space>s <cmd>Telescope xray23 list<cr><esc>

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

No branches or pull requests

3 participants