Buff, a Micro plugin

Timeline
Login

Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

12 check-ins

2026-06-03
05:13
Modify public.scratch.path() to prepend scratch file names with slugified working directory to support multiple concurrently running Micro instances. Fix non-functional scratch file removal implementation. If the action will result in the program exiting, all associated scratch files are unconditionally removed. Otherwise, only rotated pastswitch scratch file is considered; the next highest ID, if available, is written to the rotated file or it is removed and the user is notified that the buffer was closed. leaf check-in: ce0acbfea7 user: rossgohlke tags: trunk
02:57
Transfer buff.public.slugify.workdir() from session.public.workdir_slugify() so buff can use it to differentiate scratch files. Move scratch functions to bottom of public. Comment table_reverse() since it is no longer used but hate to get rid of it. check-in: 80661f99ff user: rossgohlke tags: trunk
00:02
config.AddRuntimeFileFromMemory() does not behave as I expected. Calling it multiple times with the same file path, which is just an identifier, adds additional runtime files with the same value. Over time, this means dozens or hundreds of runtime files which must be looped to get the latest value. Consequently, modify pastswitch to use scratch file managed with go.os instead. Move scratch functions from select to buff so switch can use them. Committing in the middle of fix to get README.md in. check-in: ef2248beef user: rossgohlke tags: trunk
2026-05-26
17:46
In buff.lua, fix error declaration, fix public.remove.file(). To fix file removal, check for existence of first value returned by go.filepath.Glob() before checking for existence of second value, error, because if not matches are found, second value is nil. check-in: d9c6544c59 user: rossgohlke tags: trunk
13:41
In switch.buf(), fix ID comparison, which does nothing on match, to use micro.CurPane(). check-in: 30ddaed562 user: rossgohlke tags: trunk
03:30
Now public.scratch.path returns directory if file not passed. check-in: a5fd3ae341 user: rossgohlke tags: trunk
00:13
Move list.public.bufpane() to list.public.tabpane() which requires a tab. Add list.public.bufpane() which searches all tabs for ID if not tab is passed. Now public.open.pane() accounts for parent ID offset, if passed. check-in: 2a544970b0 user: rossgohlke tags: trunk
2026-05-25
21:59
Remove obsolete functions. check-in: 9fbbb60b37 user: rossgohlke tags: trunk
21:55
Move plugin functions like onAction() back to module from submodules. Move submodule functions called by plugin functions as well. Enable and extend existing plugin functions. Remove obsolete functions. check-in: b94cad6222 user: rossgohlke tags: trunk
19:24
Move public.isactive.buf() and public.open.pane() from session plugin since they do not depend on session data. check-in: 6f8fcf1758 user: rossgohlke tags: trunk
15:15
Commit initial files, which are pretty far along; I need to start commiting sooner, but I hate stopping to create and clone the trove. check-in: 24ff03e9e1 user: rossgohlke tags: trunk
15:05
initial empty check-in check-in: e29056fd03 user: builder tags: trunk