aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-02-05 15:39:19 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-02-05 15:39:19 -0500
commit8e45692099dd22635bb06764ef281e858784565f (patch)
tree5b6df9019a667be63f6ac9ff557ce2762e0b4bfe /doc
parent86ad9c9f1cf93704f12e760eb4b396f40d55d404 (diff)
downloadtextadept-8e45692099dd22635bb06764ef281e858784565f.tar.gz
textadept-8e45692099dd22635bb06764ef281e858784565f.zip
Added command line switches for loading sessions on startup.
Diffstat (limited to 'doc')
-rw-r--r--doc/04_WorkingWithFiles.md10
-rw-r--r--doc/13_Help.md1
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/04_WorkingWithFiles.md b/doc/04_WorkingWithFiles.md
index 1ea480ce..04b4726c 100644
--- a/doc/04_WorkingWithFiles.md
+++ b/doc/04_WorkingWithFiles.md
@@ -87,10 +87,12 @@ files to reopen.
By default, Textadept saves its state on exit so it can be restored the next
time the editor starts up. You can disable this by passing the `-n` or
`--nosession` switch to Textadept on startup. Sessions can be manually saved and
-opened via the "File -> Save Session..." and "File -> Load Session..." menus.
-Session files store information such as open buffers, current split views, caret
-and scroll positions in each buffer, Textadept's window size, and recently
-opened files. Tampering with session files may have unintended consequences.
+opened via the "File -> Save Session..." and "File -> Load Session..." menus or
+by using the `-s` and `--session` switches on startup. The switches accept the
+path of a session file or the name of a session in *~/.textadept/*. Session
+files store information such as open buffers, current split views, caret and
+scroll positions in each buffer, Textadept's window size, and recently opened
+files. Tampering with session files may have unintended consequences.
### Snapopen
diff --git a/doc/13_Help.md b/doc/13_Help.md
index 6cbcdb52..f2c3dedc 100644
--- a/doc/13_Help.md
+++ b/doc/13_Help.md
@@ -10,6 +10,7 @@ Switch |Arguments|Description
`-f`, `--force` | 0 |Forces [unique instance][].
`-h`, `--help` | 0 |Shows this.
`-n`, `--nosession`| 0 |No [session][] functionality.
+`-s`, `--session` | 1 |Loads [session][] on startup.
`-u`, `--userhome` | 1 |Sets alternate [`_USERHOME`][].
The help switch is unavailable in ncurses.