text-snippets-obsidian icon indicating copy to clipboard operation
text-snippets-obsidian copied to clipboard

"Space" doesn't expand anymore

Open Jopp-gh opened this issue 2 years ago • 22 comments

Expansions aren't possible anymore using space or tab both on mobile and desktop devices. Older version of text snippets, allowed text expansion via "space" or "tab" key

Writing text needs the "Space" button as expander, everything else is cumbersome, because alternatives require 2 fingers. This issue is even worse on mobile!

I'd argue that even the "tab" button is cumbersome because not so easy and quickly accessibile than the space bar button

Jopp-gh avatar May 22 '22 16:05 Jopp-gh

I installed Text Snippets today, and found the same thing. Only Ctrl-Tab will expand, not Space or Tab. As the OP notes, Space is really necessary to auto-expand abbreviations as you type.

RobertGoulding avatar Jun 13 '22 19:06 RobertGoulding

yup, tab doesn't work for me either!

neel-maniar avatar Jul 19 '22 19:07 neel-maniar

I tried this plugin on mobile with space expansion enabled and noticed that no expansion happened and wondered if it just didn't work on mobile at all.

Hopefully this bug explains that issue too.

tedmiston avatar Aug 12 '22 21:08 tedmiston

Any chance on getting this plugin actually working?

edofe99 avatar Aug 25 '22 19:08 edofe99

I'm pretty sure as of the latest update, it does work as intended.

FlynnD273 avatar Aug 25 '22 21:08 FlynnD273

I'm pretty sure as of the latest update, it does work as intended.

https://user-images.githubusercontent.com/62611612/186849008-d8cb3bb8-1742-4fcf-839a-113e31b5c9a8.mov

...

edofe99 avatar Aug 26 '22 07:08 edofe99

Hey ! I just installed the plugin, but as mentionned above, space and tab doesn't work for me either. Only Ctrl+Tab. It would be great also to have an option to autoexpand when writting some snippets. I make a separate feature request for that.

Oskiator avatar Aug 26 '22 11:08 Oskiator

You've enabled these switches in the plugin settings? It works perfectly for me. image

FlynnD273 avatar Aug 26 '22 14:08 FlynnD273

You've enabled these switches in the plugin settings? It works perfectly for me. image

Yes, even tried disabling all plugins and reloading app, nothing. Edit: I'm on macos last version of monterey running Obsidian v0.15.9

edofe99 avatar Aug 26 '22 14:08 edofe99

I'm on Windows running 0.15.9. Do you have any other plugins? Perhaps a separate plugin is conflicting? Or even a theme? Try the default theme and disabling all other community plugins, perhaps?

FlynnD273 avatar Aug 26 '22 14:08 FlynnD273

I'm on Windows running 0.15.9. Do you have any other plugins? Perhaps a separate plugin is conflicting? Or even a theme? Try the default theme and disabling all other community plugins, perhaps?

Disabled all plugins and set on default theme, nothing, even on iPhone it won’t work.

Perhaps if the creator of the plug-in is willing to investigate I’m aviable to share my vault for further investigations.

edofe99 avatar Aug 26 '22 15:08 edofe99

Same here, tried a completely new vault on windows, Obsidian v0.15.9

mretier avatar Sep 15 '22 10:09 mretier

It's not a plugin conflict, the issue is due to obsidian moving from CodeMirror 5 to 6 which breaks the function used to detect keypresses:

this.cmEditors = [];
this.registerCodeMirror((cm) => {
  this.cmEditors.push(cm);
  cm.on('keydown', (cm, event) => this.handleKeyDown(event));
});

SekoiaTree's fork (make sure you're on the patch-1 branch) fixes this if you're willing to manually install the plugin.

Arax20 avatar Oct 04 '22 12:10 Arax20

I installed the SekoiaTree's fork. However, when testing the plugin in a new Vault in Obsidian 0.15.9 on Windows, Tab and Space still don't work.

mretier avatar Oct 04 '22 12:10 mretier

You have to run npm run build to rebuild from main.ts I think, main.js doesn't have the fix

Arax20 avatar Oct 05 '22 22:10 Arax20

@Arax20 I tried your suggestion, but receive the following error message (ran command in Windows powershell in the directory that contains the plugin files):

npm run build

> [email protected] build > rollup --config rollup.config.js

'rollup' is not recognized as an internal or external command, operable program or batch file.

mretier avatar Oct 06 '22 06:10 mretier

Hi, thank's for temporary solution but I'll not do it because I'm not able. Do you know if admin will release an official update of this plugin? Thanks.

edofe99 avatar Oct 06 '22 06:10 edofe99

I've found a solution

I've built the file on my machine, and extracted the main.js file, you can get it below : https://gist.githubusercontent.com/jeansordes/9ccd17911d1743b4aaecd20a858d84e5/raw/57eafae03af2215a64591a23489de4419e527b62/main.js

This fils is meant to replace the following file : .obsidian/plugins/text-snippets-obsidian/main.js

This will do the job until the owner of this project accept the merge request

jeansordes avatar Oct 26 '22 17:10 jeansordes

It works beautifully with that fix - thank you!

RobertGoulding avatar Dec 07 '22 19:12 RobertGoulding

I've found a solution

I've built the file on my machine, and extracted the main.js file, you can get it below : https://gist.githubusercontent.com/jeansordes/9ccd17911d1743b4aaecd20a858d84e5/raw/57eafae03af2215a64591a23489de4419e527b62/main.js

This fils is meant to replace the following file : .obsidian/plugins/text-snippets-obsidian/main.js

This will do the job until the owner of this project accept the merge request

This works for me! Thanks

cenosito avatar Mar 24 '23 21:03 cenosito

I've found a solution

I've built the file on my machine, and extracted the main.js file, you can get it below : https://gist.githubusercontent.com/jeansordes/9ccd17911d1743b4aaecd20a858d84e5/raw/57eafae03af2215a64591a23489de4419e527b62/main.js

This fils is meant to replace the following file : .obsidian/plugins/text-snippets-obsidian/main.js

This will do the job until the owner of this project accept the merge request

This worked! Plugin still broken until I patched with this. Thank you!

greenwar avatar Jan 08 '24 17:01 greenwar

I've found a solution

I've built the file on my machine, and extracted the main.js file, you can get it below : https://gist.githubusercontent.com/jeansordes/9ccd17911d1743b4aaecd20a858d84e5/raw/57eafae03af2215a64591a23489de4419e527b62/main.js

This fils is meant to replace the following file : .obsidian/plugins/text-snippets-obsidian/main.js

This will do the job until the owner of this project accept the merge request

thank you very much, it works.

jaysonteng avatar Apr 08 '24 12:04 jaysonteng