Opened 6 years ago

Closed 5 years ago

#123 closed enhancement (fixed)

Save Session / Load Session

Reported by: szabgab Owned by: jquelin
Priority: major Milestone:
Component: editor Version: 0.16
Keywords: Cc:

Description

Currently Padre saves the list of open files and the user can decide what she wants to be opened when padre is launched (nothing, empty file or the files that were open).

Notepad++ supports the saving of a "session" which is just the current list of open files along with information about cursor position and windows positions. (It is an XML file in Notepad++)
A session is saved in a file with arbitrary name and file extension.

Later on the user can "load a session" that brings up an open-file browser so the user can select which "session" she wants to load.

Padre should do better than this and also provide a command line flag so the user can say open padre with session "xyz".

Padre might need to save all this in its regular config.yml file or create a separate file for each session.

Change History (2)

comment:1 Changed 5 years ago by jquelin

  • Owner set to jquelin
  • Status changed from new to accepted

r3800 to r3816 change the session table in the database, to be able to store multiple sessions. it will be the ground on which to build the sessions feature.

the opening of latest padre session has been updated to use this new db schema.

now, we just need to add some guis and actions to save & restore sessions - including on padre command-line.

comment:2 Changed 5 years ago by jquelin

  • Resolution set to fixed
  • Status changed from accepted to closed

implemented with r3839 to r3927

ctrl+alt+s / ctrl+alt+o to save / open a session

Note: See TracTickets for help on using tickets.