• Stars
    star
    15
  • Rank 1,367,236 (Top 28 %)
  • Language
    Python
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple templater for your project: manage the tree with a simple script!

Project Tree Templater - Bring templates to your project!

Introduction

This is a simple plugin for Sublime Text 3 to create a template for your project. Imagine that you're creating your project literally from zero. You first have to create a folder called "css" where you will put all your CSS files in. Like before, you'll do a "js" folder, where you'll put your Javascript files in. And finally you'll create also an index.html where you will put your HTML inside of it.

Of course, this could be the probably not-common case of work, but in fact, sometimes happenes, from creating templates to starting little projects.

Today, with this plugin you can automate all your work, with only a few line of meta declarations, and everytime your project file will be saved, it will be reflected to your project folder. Simple as it should be.

How it works

The only thing you have to do is creating a my_project_name_here.stprj file wherever you want, remember that EVERYTHING will be created in the same place where, that file, will be saved.

After that, what you have to do is declaring your project structure as likely you're used to do manually. For example, the project mentioned in the Introduction before, could be written as the following:

css/
js/
index.html

Yes, that's it. Pretty simple and clean! Does it sound familiar? Yeah, Unix path declaration. Nothing more, you have all the basis you would need to use this plugin. Nothing new.

Reference

  • To simply place a comment in your source script use the # character as the first character of your line. An example of use would be:

      # Example of comment
    
  • To simply remove any file from your project everytime you save place the - character as the first character of your line. An example of use would be:

      -css/style.css
    

    but let we suppose we're going to remove all files inside the folder (and the folder itself), then we have to write:

      -css/*
    

    or you can also write

      -css
    

    since it will autodetect if it's a folder. Notice that this is just the same syntax as -css/*.

  • To place a default template for every file which will be created with that extension we will use the ? character as the first character of your line. An example of use would be:

      ?css:path/to/tpl.css
      ...
      css/style.css
    

    remember that global templates MUST be declared before ANY path declaration.

  • To place a single template for a single file, overriding also the global template (if it exists), we have to write the : character AFTER the path declaration. An example of use would be:

      css/style.css:path/to/tpl.css
    
  • You can now use URLs (http or https) to download resources (even in templates or in single files). Just put your URL after the : charater. An example of use would be:

      js/jquery-latest.min.js:http://code.jquery.com/jquery-latest.min.js
    
  • NEW! You can use Groups! It's nothing special, it's just a parent directory that will contain any path inside of it. An example of use woud be:

      foo (
          css/
          js/
          index.html
      )
    

    or also

      foo/bar (
          css/
          js/
          index.html
      )
    

And remember!

If you place a / character at the beginning of any path (template or not), the path will be always considered RELATIVE to the project file.

How to install

Soon it will be available to Sublime Package Control. So what you have to do is: press code>Ctrl+Shift+P, type install, press Enter then type ProjectTreeTemplater and finally press again the Enter key.

In the meanwhile, to install it you just have to download a copy of this folder, and copy it to the one of your already existing packages. To find it, simply open Sublime Text and then do

Preferences -> Browse Packages...

and place it inside that folder.

License

See LICENSE.

Last but not least

This plugin is far from perfect, so if you find any bug you're free to contribute :)

More Repositories

1

FFNx

Next generation modding platform for Final Fantasy VII and Final Fantasy VIII ( with native Steam 2013 release support! )
C++
340
star
2

LineageOTA

A simple OTA REST Server for LineageOS OTA Updater System Application
PHP
215
star
3

iPoPS

Convert your PSX Discs and ISOs into the PBP format, and play them on your PSP
C
60
star
4

gitbook-plugin-summary

Gitbook plugin to auto-generate SUMMARY.md
JavaScript
52
star
5

docker-powerdns

PowerDNS + Recursor + Admin GUI + Adblock in one single Docker
Shell
52
star
6

vps-powered-by-docker

Arch Linux setup script to obtain a full VPS with Automatic Reverse Proxy (and more) without pain
Shell
27
star
7

docker-woocommerce

PHP Docker for Woocommerce on Steroids
Dockerfile
22
star
8

docker-lineage-cicd

Docker microservice for LineageOS Continuous Integration and Continous Deployment
Dockerfile
17
star
9

PostEvent

A Cross-Domain Event Handler javascript library. Pure Vanilla JS, no dependencies.
HTML
15
star
10

LineageOTAUnitTest

A LineageOS OTA Unit Test made for NodeJS
JavaScript
10
star
11

jvectormap-italy-provinces

A plugin for jVectorMap which includes an Italy Map with Provinces Areas
10
star
12

TwigPress

A boilerplate Twig Engine Theme for Wordpress
PHP
9
star
13

chrome-link-revealer

Simply reveal links when you hover your mouse over anchors
JavaScript
9
star
14

chrome-deezer-mediakeys-reloaded

Add multimedia keys support to Deezer
JavaScript
9
star
15

spotify-playlist-extractor

Bring back the freedom of choice to users. Let them export their playlist from Spotify, whenever they want :)
JavaScript
9
star
16

SteamworksSDKCI

CI builds of Steamworks SDK for CMake build systems
C++
9
star
17

docker-awesome-wordpress

A Docker that combines all the most awesome needed things for a powerful Wordpress installation
Dockerfile
8
star
18

gulp-usemin-reloaded

A better usemin
JavaScript
6
star
19

chrome-spotify-mediakeys-reloaded

Add multimedia keys support to Spotify
JavaScript
6
star
20

Palmer

FF7 Field Background Editor
C++
5
star
21

mockups-creator

A NodeJS App that creates static HTML mockups using Grunt
JavaScript
5
star
22

jquery-itunestoresearch

A simple wrap to official iTunes Store Search API with jQuery
JavaScript
4
star
23

chrome-grooveshark-mediakeys-reloaded

Add multimedia keys support to Grooveshark
JavaScript
4
star
24

Moomba

Final Fantasy VIII CAM editor
C#
4
star
25

docker-gplayweb

GPlayWeb + FDroid Server + Caddy Server on one single Docker
Shell
4
star
26

typdom3

DOMPDF wrapper for TYPO3
PHP
4
star
27

tomahawk-daapjs

A DAAP resolver for Tomahawk made in Javascript
JavaScript
3
star
28

twypo

Twig for TYPO3
PHP
3
star
29

CaitSith

Final Fantasy VII CAM editor
C#
3
star
30

docker-pagekit

PHP Docker for Pagekit
2
star
31

JPM

A simple Json Package Manager
C#
2
star
32

jquery-youtubelivefeed

A simple jQuery plugin that will let you to embed live feeds or latest one made
JavaScript
2
star
33

ota.julianxhokaxhiu.com

Fully Automated Serverless OTA Service for LineageOS, using Github, Basketbuild, Cloudflare and Travis
JavaScript
2
star
34

PuPuSharp

FF8 Field Importer/Exporter - C# version of the original PuPu Project
C#
2
star
35

amazon-bot

JavaScript
2
star
36

FF78Launcher

An alternative launcher for FF7/FF8 Steam editions
CMake
2
star
37

bgfxCI

CI builds of bgfx for x86 platform
PowerShell
2
star
38

chrome-soundcloud-mediakeys-reloaded

Enable the use of MediaKeys for Soundcloud
JavaScript
2
star
39

polysticky.js

A position sticky polyfill that doesn't suck.
JavaScript
2
star
40

dotfiles

Collection of dotfiles improved overtime, based on Arch Linux
Shell
2
star
41

gulp-closurecompiler

The ClosureCompiler.js Gulp Task
JavaScript
2
star
42

FF7SND

Final Fantasy VII Audio Extraction app ( originally made by Qhimm.com )
C#
2
star
43

jquery-tagbox

A simple Facebook (or Google+) TagBox like using jQueryUI
JavaScript
1
star
44

MMNx

Next generation Mod Manager
CMake
1
star
45

ff8_mch

Final Fantasy VIII MCH Import/Export plugin for Blender
Python
1
star
46

docker-twrp-cicd

Docker microservice for TWRP Continuous Integration and Continous Deployment
Shell
1
star
47

DeliriNotturni-Live-Page

Live page of DeliriNotturni.org
JavaScript
1
star
48

rpi-powered-by-docker

Arch Linux ARM setup script to obtain a full RPI with Automatic Reverse Proxy (and more) without pain
Shell
1
star
49

ffmpegCI

CI builds of FFMpeg for x86 platform
PowerShell
1
star
50

chrome-youtube-mediakeys-reloaded

Enable the use of MediaKeys for Youtube
JavaScript
1
star
51

blog.julianxhokaxhiu.com

Julian Xhokaxhiu's Blog
HTML
1
star
52

vpngate-ovpn-exporter

Export all VPNGate OpenVPN configurations to files inside country-code relative folders
Python
1
star
53

AUR

My Arch Linux AUR Packages
Shell
1
star
54

LLGLCI

CI builds of LLGL for x86 platform
CMake
1
star
55

docker-iperf3

iPerf3 Server Container
Dockerfile
1
star
56

docker-nginx-reloaded

Reverse Proxy Docker container with Nginx, acme.sh, DNS and Autodiscovery ( alternative to jwilder/nginx-proxy )
Twig
1
star