Menu

1 / 2

Tabs, files and session restore

DEV Community: javascript·JSLab·4 days ago
#JAPhAtSK
#devtojavascript#devto#dev#jslab#opens
Reading 0:00
15s threshold

JSLab feature notes: one docs page, explained. Today: Your first tab .

A scratchpad lives or dies on one question: is my stuff still there tomorrow? In JSLab, a JavaScript & TypeScript scratchpad for macOS, the answer is yes, and this note covers how.

Session restore

Quit JSLab and relaunch, and it brings back:

your tabs and their code;

each tab's layout, folds, cursor and scroll position;

the window's size and the display it was on.

Also kept per tab: its working directory and whether its Web View is showing. Each tab's AI Chat conversation comes back too.

The session lives in session.json in JSLab's data folder. If that file can't be read, JSLab restores it from its backup when it can and tells you.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.