#142 open
Swizec

[feature] scratch buffer

Reported by Swizec | January 3rd, 2011 @ 02:59 AM

The idea of a scratch buffer comes from Emacs, although I prefer the slight modification that was made in Aquamacs.

What a scratch buffer is, is basically a magic tab that preserves whatever you type in it, so you have somewhere to put random bits of stuff while you're coding.

Originally the scratch buffer preserved state only as long as one kept emacs open, but I prefer the way Aquamacs does it of preserving state even after you close the app.

Comments and changes to this ticket

  • rsms

    rsms January 6th, 2011 @ 05:40 PM

    • Assigned user set to “rsms”
    • Tag set to behavior, buffer, feature, ux

    How is this different from pressing Cmd+T (creates a new buffer) and writing stuff in that document w/o saving it (except from the persisting part of course)?

  • rsms

    rsms January 7th, 2011 @ 06:31 PM

    • State changed from “new” to “open”

    Sounds like a solid plan. I never really used the scratch buffer in emacs but what I recall it wasn't persistent between program restarts. Maybe it is now days.

    One thing I'm missing in Kod right now is the ability to "create new buffer -> give it a name -> here it is" feature of emacs & vim. That is, ability to chose a name when creating a new document.

    Maybe this would work:

    • buffer:any name here... as a special URI scheme for "local documents"
    • buffer:scratch as an even more special name which when typed into the location bar, takes you directly to an open instance of the scratch or opens it for you in a tab.
    • A keyboard shortcut which performs:
      • Give focus to location bar
      • Enter "buffer:scratch"
      • Put the cursor selection over "scratch"

    Given this, you would be able to jump to the scratch buffer using only two key presses (jump-to-location-with-buffer-prefix, enter) and also create a new buffer or jump to a custom one by simply pressing the jump-to-location-with-buffer-prefix shortcut, typing the name and finally enter.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket

Pages