|
ze
|
Guile/Scheme plugin API and keybinding integration. More...


Go to the source code of this file.
Functions | |
| void | initKeyBindings (void) |
| Initialize the in-memory key binding table. | |
| void | loadPlugins (void) |
| Load Scheme plugins from "$HOME/.ze/plugins" (all .scm files). | |
| SCM | scmBindKey (SCM keySpec, SCM proc) |
| Bind a key specification to a Scheme procedure. | |
| int | pluginsHandleKey (unsigned char code) |
| If a Scheme binding exists for the key, invoke it. | |
| void | editorExec (void) |
| Prompt for and evaluate a single Scheme expression (mini-REPL). | |
| SCM | scmBufferToString (void) |
| Return the entire buffer as a Scheme string. | |
| SCM | scmBufferLineCount (void) |
| Get the number of lines in the current buffer. | |
| SCM | scmGetLine (SCM idx_scm) |
| Get the contents of a line by index. | |
| SCM | scmSetLine (SCM idx_scm, SCM str_scm) |
| Replace the contents of a line. | |
| SCM | scmInsertLine (SCM idx_scm, SCM str_scm) |
| Insert a new line at index. | |
| SCM | scmAppendLine (SCM str_scm) |
| Append a new line at the end of the buffer. | |
| SCM | scmDeleteLine (SCM idx_scm) |
| Delete a line by index. | |
| SCM | scmInsertText (SCM str_scm) |
| Insert text at the cursor position, interpreting newlines. | |
| SCM | scmInsertChar (SCM ch_scm) |
| Insert a single character at the cursor. | |
| SCM | scmInsertNewline (void) |
| Insert a newline at the cursor position. | |
| SCM | scmDeleteChar (void) |
| Delete the character to the left of the cursor (backspace). | |
| SCM | scmGetCursor (void) |
| Get current cursor position. | |
| SCM | scmSetCursor (SCM x_scm, SCM y_scm) |
| Set cursor position, clamped to the current buffer. | |
| SCM | scmMoveCursor (SCM dir_scm) |
| Move the cursor in a direction. | |
| SCM | scmScreenSize (void) |
| Get the editor screen size in rows and columns. | |
| SCM | scmOpenFile (SCM path_scm) |
| Open a file into the editor. | |
| SCM | scmSaveFile (void) |
| Save the current buffer to disk. | |
| SCM | scmGetFilename (void) |
| Get the current filename, if any. | |
| SCM | scmSetFilename (SCM path_scm) |
| Set the current filename and reselect syntax highlighting. | |
| SCM | scmPrompt (SCM msg_scm) |
| Prompt the user and return their input. | |
| SCM | scmRefreshScreen (void) |
| Force a screen refresh. | |
| SCM | scmSearchForward (SCM query_scm) |
| Search forward for a substring and jump to the next match. | |
| SCM | scmSelectSyntaxForFilename (SCM path_scm) |
| Select syntax based on a filename, without opening the file. | |
| SCM | scmGetFiletype (void) |
| Get the current filetype name from syntax highlighting. | |
| SCM | scmUnbindKey (SCM keySpec) |
| Remove a key binding. | |
| SCM | scmListBindings (void) |
| List all key bindings. | |
| SCM | scmBufferDirty (void) |
| Check whether the current buffer has unsaved changes. | |
| SCM | scmSetBufferDirty (SCM bool_scm) |
| Mark the current buffer dirty/clean. | |
| SCM | scmCloneTemplate (void) |
| Clone a template into the current buffer (interactive selection). | |
| SCM | pluginsGetHook (const char *name) |
| Fetch a registered hook by name. | |
Guile/Scheme plugin API and keybinding integration.