Giter VIP home page Giter VIP logo

simplesession's Introduction

SimpleSession

license

SimpleSession is a tiny session manager for Sublime Text (3).

It was originally based on Session Manager, which is a lot better than Sublime's default session management but doesn't allow per-window saving or layout saving.

Pros

  • Saves sessions on a per-window basis, instead of the global Sublime Text state.
  • Saves and restores window layout and file grouping.
  • Only opens a new window if your current one is empty.
  • Restores unsaved buffers (but not unsaved file changes).

Cons

  • Doesn't care about your Sublime Text project files (this might be a 'pro').
  • Will probably crash/do something wrong if you try to load a non-session file.
  • Probably won't work on Sublime Text 2. I haven't tried it.

Installation

If you have Package Control installed:

  • Open the Command Palette (Ctrl+Shift+P)
  • Go to Package Control: Install Package
  • Search for "SimpleSession" and press Enter to install

If you don't have Package Control or want to install manually for whatever reason:

  • Clone this repository into your packages directory (Preferences -> Browse Packages...).

Usage

SimpleSession's usage is similar to Session Manager's:

Command Palette (Ctrl+Shift+P) operation:

SimpleSession: Delete
SimpleSession: Load
SimpleSession: Save
SimpleSession: Save and Close
SimpleSession: Edit

Delete and Load give you a list of sessions to chose from, and Save prompts you for a filename to save the current session with. Save and Close operates identically to Save, but closes all open files in the window after saving.

Like Session Manager, these commands can be bound:

save_session
save_and_close_session
load_session
delete_session
edit_session

simplesession's People

Contributors

derekziemba avatar korridzy avatar woodruffw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

korridzy

simplesession's Issues

Autocompletion on session saving

It would be nice to have an autocompletion on session saving panel which can suggest session names user already created earlier.

Feature: Save new files

Often times I have a lot of new tabs open in a window besides project files. These new files contain WIP code, code to test in console, etc. It'd make a lot of sense to just save all tabs in the session. The same could go for any unsaved changes in files. In a way, SimpleSession could be like mini-projects in projects. I hope this isn't too much of a departure from the 'Simple' in 'SimpleSession'.

Corrupted unsaved content

Hello.
SimpleSession have an issue with saving unsaved content.
It pruduces a lot of indents in some cases.
E.g.: I have some unsaved files with long php code in my session, and after saving this session, the resulting session file was about 97 MB, and Sublime was freezed with high cpu load when I tried to load this session.

image

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.