teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Functions
teditor::cmbar::ops Namespace Reference

Functions

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

Function Documentation

◆ DEF_CMD() [1/12]

teditor::cmbar::ops::DEF_CMD ( BackspaceChar  ,
"prompt-backspace-char"  ,
"cmbar_ops"  ,
DEF_OP() { auto &cmBar=ed.getCmBar();cmBar.remove();cmBar.updateChoices();}   
)

◆ DEF_CMD() [2/12]

teditor::cmbar::ops::DEF_CMD ( Cancel  ,
"prompt-cancel"  ,
"cmbar_ops"  ,
DEF_OP() { ed.requestCancelPromptLoop();ed.requestQuitPromptLoop();}   
)

◆ DEF_CMD() [3/12]

teditor::cmbar::ops::DEF_CMD ( CursorHome  ,
"prompt-cursor-home"  ,
"cmbar_ops"  ,
DEF_OP() { ed.getCmBar().startOfLine();}   
)

◆ DEF_CMD() [4/12]

teditor::cmbar::ops::DEF_CMD ( CursorLeft  ,
"prompt-cursor-left"  ,
"cmbar_ops"  ,
DEF_OP() { ed.getCmBar().left();}   
)

◆ DEF_CMD() [5/12]

teditor::cmbar::ops::DEF_CMD ( CursorLineEnd  ,
"prompt-cursor-line-end"  ,
"cmbar_ops"  ,
DEF_OP() { ed.getCmBar().endOfLine();}   
)

◆ DEF_CMD() [6/12]

teditor::cmbar::ops::DEF_CMD ( CursorRight  ,
"prompt-cursor-right"  ,
"cmbar_ops"  ,
DEF_OP() { ed.getCmBar().right();}   
)

◆ DEF_CMD() [7/12]

teditor::cmbar::ops::DEF_CMD ( DeleteChar  ,
"prompt-delete-char"  ,
"cmbar_ops"  ,
DEF_OP() { auto &cmBar=ed.getCmBar();cmBar.remove(true);cmBar.updateChoices();}   
)

◆ DEF_CMD() [8/12]

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);}   
)

◆ DEF_CMD() [9/12]

teditor::cmbar::ops::DEF_CMD ( InsertCharQuit  ,
"prompt-insert-char-quit"  ,
"cmbar_ops"  ,
DEF_OP() { ed.runCmd("prompt-insert-char");ed.runCmd("prompt-quit");}   
)

◆ DEF_CMD() [10/12]

teditor::cmbar::ops::DEF_CMD ( OptionsDown  ,
"prompt-options-down"  ,
"cmbar_ops"  ,
DEF_OP() { ed.getCmBar().down();}   
)

◆ DEF_CMD() [11/12]

teditor::cmbar::ops::DEF_CMD ( OptionsUp  ,
"prompt-options-up"  ,
"cmbar_ops"  ,
DEF_OP() { ed.getCmBar().up();}   
)

◆ DEF_CMD() [12/12]

teditor::cmbar::ops::DEF_CMD ( Quit  ,
"prompt-quit"  ,
"cmbar_ops"  ,
DEF_OP() { ed.requestQuitPromptLoop();}   
)