1 /*
2  * Copyright 2018 Jiri Techet <techet@gmail.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef __VIMODE_CMDS_EDIT_H__
20 #define __VIMODE_CMDS_EDIT_H__
21 
22 #include "context.h"
23 #include "cmd-params.h"
24 
25 void cmd_delete_char(CmdContext *c, CmdParams *p);
26 void cmd_delete_char_copy(CmdContext *c, CmdParams *p);
27 void cmd_delete_char_back(CmdContext *c, CmdParams *p);
28 void cmd_delete_char_back_copy(CmdContext *c, CmdParams *p);
29 
30 void cmd_clear_right(CmdContext *c, CmdParams *p);
31 void cmd_delete_line(CmdContext *c, CmdParams *p);
32 void cmd_copy_line(CmdContext *c, CmdParams *p);
33 
34 void cmd_newline(CmdContext *c, CmdParams *p);
35 void cmd_tab(CmdContext *c, CmdParams *p);
36 void cmd_del_word_left(CmdContext *c, CmdParams *p);
37 
38 void cmd_undo(CmdContext *c, CmdParams *p);
39 void cmd_redo(CmdContext *c, CmdParams *p);
40 
41 void cmd_paste_after(CmdContext *c, CmdParams *p);
42 void cmd_paste_before(CmdContext *c, CmdParams *p);
43 
44 void cmd_join_lines(CmdContext *c, CmdParams *p);
45 void cmd_join_lines_sel(CmdContext *c, CmdParams *p);
46 
47 void cmd_replace_char(CmdContext *c, CmdParams *p);
48 void cmd_replace_char_sel(CmdContext *c, CmdParams *p);
49 
50 void cmd_switch_case(CmdContext *c, CmdParams *p);
51 void cmd_lower_case(CmdContext *c, CmdParams *p);
52 void cmd_upper_case(CmdContext *c, CmdParams *p);
53 
54 void cmd_indent(CmdContext *c, CmdParams *p);
55 void cmd_unindent(CmdContext *c, CmdParams *p);
56 void cmd_indent_sel(CmdContext *c, CmdParams *p);
57 void cmd_unindent_sel(CmdContext *c, CmdParams *p);
58 void cmd_indent_ins(CmdContext *c, CmdParams *p);
59 void cmd_unindent_ins(CmdContext *c, CmdParams *p);
60 
61 void cmd_copy_char_from_above(CmdContext *c, CmdParams *p);
62 void cmd_copy_char_from_below(CmdContext *c, CmdParams *p);
63 
64 void cmd_repeat_subst(CmdContext *c, CmdParams *p);
65 
66 #endif
67