Sublime Forum

User Snippets not appearing in command pallette?

#1

I have a number of snippets I’ve made that reside in

~/Library/Application Support/Sublime Text 3/Packages/User/Snippets/subfolder/snippet.sublime-snippet

A simple one, for example, for a custom wordpress admin logo:

[code]
<![CDATA[
// Admin Custom Logo
function custom_login_logo() { ?>

body.login div#login h1 a { background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/_/inc/images/${1:site-login-logo}.png); padding-bottom: 30px; } <?php } add_action( 'login_enqueue_scripts', 'custom_login_logo' ); ]]> [/code] None of my snippets are using tabTrigger nor scope, so there should be no reason they aren't showing up. http://d.pr/i/11K90/57rzMOHu+ I am using Sublime Text 3065 on a Mac running Yosemite 10.10, previously had the same issue with Mavericks 10.9.x. I really am at a loss of what is going on, as it worked perfectly before and suddenly stopped now. Only a tiny handful of what appear to be default snippets are showing up Any tips/ideas on how to troubleshoot would be greatly appreciated as I've been waiting to find a spare moment to be able to fix it – I'm sure anyone who uses snippets knows it's a pretty essential feature and I miss it every day.
0 Likes

#2

Hm, okay after a bit of troubleshooting, removing some broken packages and reinstalling, I now see the snippets appearing, but with the first line of code instead of using the Snippet name?

According to the docs:

[quote]description
Used when showing the snippet in the Snippets menu. If not present, Sublime Text defaults to the name of the snippet.[/quote]

I’ve also tried inserting a description tag in the XML and it still isn’t working…

0 Likes