teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Namespaces | Functions
cmbar_ops.cpp File Reference
#include "core/editor.h"
#include "core/command.h"
#include <stdio.h>

Namespaces

 teditor
 
 teditor::cmbar
 
 teditor::cmbar::ops
 

Functions

 teditor::cmbar::ops::DEF_CMD (Quit, "prompt-quit", "cmbar_ops", DEF_OP() { ed.requestQuitPromptLoop();})
 
 teditor::cmbar::ops::DEF_CMD (Cancel, "prompt-cancel", "cmbar_ops", DEF_OP() { ed.requestCancelPromptLoop();ed.requestQuitPromptLoop();})
 
 teditor::cmbar::ops::DEF_CMD (InsertChar, "prompt-insert-char", "cmbar_ops", DEF_OP() { auto &cmBar=ed.getCmBar();auto c=(char) ed.getKey();cmBar.insert(c);})
 
 teditor::cmbar::ops::DEF_CMD (InsertCharQuit, "prompt-insert-char-quit", "cmbar_ops", DEF_OP() { ed.runCmd("prompt-insert-char");ed.runCmd("prompt-quit");})
 
 teditor::cmbar::ops::DEF_CMD (CursorRight, "prompt-cursor-right", "cmbar_ops", DEF_OP() { ed.getCmBar().right();})
 
 teditor::cmbar::ops::DEF_CMD (CursorLeft, "prompt-cursor-left", "cmbar_ops", DEF_OP() { ed.getCmBar().left();})
 
 teditor::cmbar::ops::DEF_CMD (CursorHome, "prompt-cursor-home", "cmbar_ops", DEF_OP() { ed.getCmBar().startOfLine();})
 
 teditor::cmbar::ops::DEF_CMD (CursorLineEnd, "prompt-cursor-line-end", "cmbar_ops", DEF_OP() { ed.getCmBar().endOfLine();})
 
 teditor::cmbar::ops::DEF_CMD (BackspaceChar, "prompt-backspace-char", "cmbar_ops", DEF_OP() { auto &cmBar=ed.getCmBar();cmBar.remove();cmBar.updateChoices();})
 
 teditor::cmbar::ops::DEF_CMD (DeleteChar, "prompt-delete-char", "cmbar_ops", DEF_OP() { auto &cmBar=ed.getCmBar();cmBar.remove(true);cmBar.updateChoices();})
 
 teditor::cmbar::ops::DEF_CMD (OptionsDown, "prompt-options-down", "cmbar_ops", DEF_OP() { ed.getCmBar().down();})
 
 teditor::cmbar::ops::DEF_CMD (OptionsUp, "prompt-options-up", "cmbar_ops", DEF_OP() { ed.getCmBar().up();})