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

Snippets fails to expand #60

Open
ipxfer opened this issue Dec 31, 2022 · 11 comments
Open

Snippets fails to expand #60

ipxfer opened this issue Dec 31, 2022 · 11 comments

Comments

@ipxfer
Copy link

ipxfer commented Dec 31, 2022

I'm running Obsidian v1.1.9 on Windows 11 with Snippets v0.12.

Snippets are not expanding and they just get selected. I tried turning off all the community plug-ins, and results in same outcome.

Anyone else having the same issue?

@vialcollet
Copy link

Hi
I have a similar issue on Windows 10 and Obsidian 1.1.9.

Whatever method I use, snippets won't expand:

  • Tab will put a tab
  • Space will input a space
  • Ctr + Tab will do nothing

This even happens with the demo snippet.

@pnchinmay
Copy link

pnchinmay commented Jan 10, 2023

Check your hotkeys
Ctrl+Tab might be binded to something else
I had the same issue

@SunnyOd
Copy link

SunnyOd commented Jan 13, 2023

Same issue here. ctrl+tab has no bindings and space adds a space (after i checked setting on)

@tiagobrc
Copy link

Same issue here. I can't expand any snippets.

@MechanicalAkhil
Copy link

if you are dependent on this plugin, use legacy editor until this is fixed.
settings -> editor -> use legacy editor.

@pnchinmay
Copy link

check bindings in .obisidian/hotkeys.json
It should have this binding for snippets plugin

  "text-snippets-obsidian:text-snippets": [
    {
      "modifiers": [
        "Mod"
      ],
      "key": "Tab"
    }
  ],

Check whether any other action has got this binding Mod and Tab together

@vialcollet
Copy link

Hi

The binding was missing in the json.
Adding it solved the issue.
In my case, no other binding with the same binding was setup.

Thanks for your help

@tiagobrc
Copy link

tiagobrc commented Jan 30, 2023

The easiest thing for me was to change the hotkey of (text snipets: Run snippet replacement) from command + tab to anything else. Then it works.

Thanks!

@shayaknyc
Copy link

Hey folks, came here to see if anyone else was having an issue. I'm running Obsidian v1.2.7 on Windows 11. I have the hotkey set for ctrl+tab, but it wasn't in the hotkeys.json file so I manually added it as per #60 (comment), restarted Obsidian, and it still doesn't work. Am I missing something? Because I have Expand on Tab and Expand on Space toggled on, but after I type the snippet string and hit space or tab, it only adds the space after the string, or indents the whole string. CTRL+Tab does absolutely nothing. I don't really want to revert to the legacy editor.... any ideas?

@tondeaf
Copy link

tondeaf commented Jun 1, 2023

@shayaknyc : ctrl-tab won't work because that will switch tabs. Need to change the hotkeys. That said, doesn't work for me either.

@aaryswastaken
Copy link

aaryswastaken commented Jun 19, 2023

I managed to make it work with the manual shortcut (Ctrl + Shirt + R for me) but space and tab binding isn't working unless I go to legacy editor which will be deprecated.

Is there a way to make those bindings work on non-legacy editor?

Note: Even with tab disables in the editor settings the binding isn't working

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

9 participants