code-snippets icon indicating copy to clipboard operation
code-snippets copied to clipboard

Ability to store and run snippets from local php files

Open nickchomey opened this issue 2 years ago • 3 comments

The main reason why I don't use Code Snippets is because it stores the snippets in the database. This prevents me from being able to use Xdebug for step debugging.

Instead I use the generally inferior, but sufficient, custom code tool within Toolset which stores its snippets in wp-content/toolset-customizations

I'd love to have something similar with code snippets!

nickchomey avatar Jul 03 '22 14:07 nickchomey

Thank you for the suggestion! It's something I've been wanting to implement for some time.

Unfortunately it's not currently our first priority – some improvements to the block editor/elementor widgets are first to go, and then the first version of our cloud sync feature – but it's definitely high on my personal list of priorities. I'll post here again when I've had a chance to work out a prototype.

sheabunge avatar Jul 05 '22 09:07 sheabunge

The main reason why I don't use Code Snippets is because it stores the snippets in the database. This prevents me from being able to use Xdebug for step debugging.

Instead I use the generally inferior, but sufficient, custom code tool within Toolset which stores its snippets in wp-content/toolset-customizations

I'd love to have something similar with code snippets!

@nickchomey @sheabunge I agree 100%, I'm all about this idea, less database bloat, having everything static per say is always the best way for speed and code control. We already do this in our own custom application everything is static and it fly's like a no SQL db running on React.

ingenuitor avatar Aug 02 '22 12:08 ingenuitor

FYI, wp code box will be releasing this sort of functionality soon... I just bought a license and am unlikely to ever look back...

https://m.facebook.com/groups/wpcodebox/permalink/1218349889005041

nickchomey avatar Aug 15 '22 16:08 nickchomey