I’ve been in some trouble getting the ignore_regex option working in the Sublime SFTP plugin for Sublime Text. I’m not that good with regex, though I guess this should be fairly easy
My folder structure is pretty simple:
main_folder
│
├─── css
│ │ some other files
│ │ in the \css folder,
│ │ etc..
│ │
│ └─── sass
│ │ some other files
│ │ in the \sass folder,
│ │ etc..
│ │
│ └─── sass_subfolders
│ some other files
│ in \sass_subfolders,
│ etc..
├─── other_folders
│
etc...
I’d like that everything in the \sass folder, and the folder itself, to be ignored by sftp for uploading/syncing.
I’ve tried also with the configuration suggested in this post on the sublime forum , specifing to exclude the .scss files, yet it keeps uploading/syncing upon save and so on..
To have an entire directory ignored by sublime sftp add it to your ignore_regexes settings like so:
“/folder_name/”
I use it to ignore octopress which generates my blog but doesn’t need to be on the remote server itself. I also ignore the directory on the server that holds the generated blog, but doesn’t live on my local machine in the same place.
This and a few more tips are on the plugin’s faq page.