Skip to content

Treat untitled buffers as persistent scratch buffers

License

Notifications You must be signed in to change notification settings

orbitalquark/textadept-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scratch

Treat untitled buffers as scratch buffers.

Scratch buffers persist between sessions (e.g. closing and re-opening Textadept will re-open any scratch buffers) unless Textadept is in "no session" mode (the -n or --no-session flag was passed).

Install this module by copying it into your ~/.textadept/modules/ directory or Textadept's modules/ directory, and then putting the following in your ~/.textadept/init.lua:

require('scratch')

Fields defined by scratch

scratch.enabled

Whether or not this module is enabled. The default value is true.

scratch.scratch_directory

The directory to temporarily save scratch files to. The default value is ~/.textadept/scratch/.


About

Treat untitled buffers as persistent scratch buffers

Resources

License

Stars

Watchers

Forks

Packages

No packages published