xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
<root> / src / cmd_handlers.h (e57bb3e4db55e7e4b03fa8d6ea92cf1172e38515) (1,790B) (mode 100644) [raw]
/* vifm
 * Copyright (C) 2015 xaizek.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef VIFM__CMD_HANDLERS_H__
#define VIFM__CMD_HANDLERS_H__

/* This file exports some information about command handlers that is needed by
 * cmd_core.c and cmd_completion.c. */

#include <stddef.h> /* size_t */

#include "engine/cmds.h"

/* Commands without completion, but for which we need to have an id. */
enum
{
	COM_CDS = NO_COMPLETION_BOUNDARY,
	COM_AMAP,
	COM_ANOREMAP,
	COM_CMAP,
	COM_CNOREMAP,
	COM_COMMAND,
	COM_DMAP,
	COM_DNOREMAP,
	COM_ELSE_STMT,
	COM_ENDIF_STMT,
	COM_FILETYPE,
	COM_FILEVIEWER,
	COM_FILEXTYPE,
	COM_FILTER,
	COM_MAP,
	COM_MMAP,
	COM_MNOREMAP,
	COM_NMAP,
	COM_NNOREMAP,
	COM_NOREMAP,
	COM_NORMAL,
	COM_QMAP,
	COM_QNOREMAP,
	COM_SUBSTITUTE,
	COM_TR,
	COM_VMAP,
	COM_VNOREMAP,
};

/* Specification of builtin commands. */
extern const cmd_add_t cmds_list[];
/* Number of elements in cmds_list. */
extern const size_t cmds_list_size;

#endif /* VIFM__CMD_HANDLERS_H__ */

/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */
/* vim: set cinoptions+=t0 filetype=c : */
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master