Skip to content

Julow/Juloo-Sublime-Package

Repository files navigation

Juloo-Sublime-Package

All my sublime plugins.

Installation

Clone or download this repo in Sublime Text's Package directory.

Content

42 Header

  • Insert the 42 Header Insert the header at the top of the file
  • Update the 42 Header Update the header

The header is automatically updated on save

	// Disable header update on save
	"juloo_42_header": false
	// Set pseudo (by default, $USER is used)
	"pseudo": "your name"

Run Command

  • ctrl+b show a prompt that execute a command

Before the command is run, the pwd is set to the first opened folder

Save the last used command

Shell Insert

  • Insert Line number Insert the line number
  • Insert Column number Insert the column index
  • Insert Shell command output:

The command is executed using bash

Before executing the command, the pwd is set to the current dir and some variables are set:

	"$FILE" # The current file name
	"$LINE" # The current line number
	"$COLUMN" # The current column number
	"$TEXT" # The content of the selected region (or the whole line if the selection is empty)

Note: If there is multiple selections, the command is executed for each cursors

Focus

  • ctrl+pageup/pagedown Switch next/prev view in group

  • ctrl+shift+pageup/pagedown Switch next/prev group

  • ctrl+alt+pageup/pagedown Move view to the right/left

  • ctrl+alt+shift+pageup/pagedown Move view to the next/prev group

  • ctrl+k, ctrl+tab Focus the output panel

Cursor

  • alt+s Save current cursors

  • alt+shift+s Restore saved cursors

  • alt+x Remove saved cursors

  • alt+d Jump to the next saved cursor

  • alt+shift+d Jump to the previous saved cursor

  • alt+up Jump before previous paragraph

  • alt+down Jump after next paragraph

  • alt+shift+up or alt+shift+down Same but selecting

Side Bar

  • ctrl+, Toggle and focus side bar + Reveal current file
  • ctrl+k, ctrl+, Clear side bar

Include Sort

  • C, C++: #include <...>, #include "..."
  • Python: import ..., import ... from ...
  • OCaml: open ...
  • Haskell: import ...
  • Java: import ...

Can be disabled:

	// Disable automatic include sorting
	"juloo_sort_include": false
  • Sort Includes command

Layout Spliter

Change easily the Sublime Text layout

Shortcuts:

  • ctrl+k, ctrl+d Split vertical
  • ctrl+k, ctrl+shift+d Split horizontal
  • ctrl+k, ctrl+m Merge

Commands:

  • Split vertical (Split the current view vertically into 2 equal parts)
  • Split horizontal (Split the current view horizontally into 2 equal parts)
  • Merge (Merge 2 splitted views into 1)
  • Reset (Reset the layout: 1 view)

Misc

Color schemes:

  • theme_2
  • theme_4
  • theme_5

Syntax:

  • ASM syntax

Some snippets

About

All my sublime plugins for Sublime Text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published