Source

Kephra / lib / Kephra / Config / Default / CommandList.pm

use strict;
use warnings;

package Kephra::Config::Default::CommandList;

sub get {
	return {
		'file-new' => {
			function  => 'Kephra::File::new',
			name  => 'New',
			help  => '',
			keys  => 'Ctrl + N',
			icon  => '',
		},
		'file-open' => {
			function  => 'Kephra::File::open',
			name => 'Open',
			help  => 'open one ore multiple files',
			keys  => 'Ctrl + O',
			icon  => '',
		},
		'file-save' => {
			function  => 'Kephra::File::save_active',
			name => 'Save',
			help  => '',
			keys  => 'Ctrl + Q',
			icon  => '',
		},
		'file-close' => {
			function  => 'Kephra::File::close_active',
			name => 'Close',
			help  => '',
			keys  => 'Ctrl + Q',
			icon  => '',
		},
		'app-close-save' => {
			function  => 'Kephra::App::close_save',
			name => 'Exit',
			help  => '',
			keys  => 'Alt + Q',
			icon  => '',
		},
		'edit-select-all' => {
			function  => '',
			name => 'Select All',
			help  => '',
			keys  => 'Ctrl + A',
		},
		'edit-select-block' => {
			function  => '',
			name => '',
			help  => '',
			keys  => '',
		},
		'edit-select-block-up' => {
			function  => '',
			name => '',
			help  => '',
			keys  => '',
		},
		'edit-select-block-down' => {
			function  => '',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-select-leftmost' => {
			function  => 'Kephra::App::Panel::Editor::select_tab_leftmost',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-select-rightmost' => {
			function  => 'Kephra::App::Panel::Editor::select_tab_rightmost',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-select-left' => {
			function  => 'Kephra::App::Panel::Editor::select_tab_left',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-select-right' => {
			function  => 'Kephra::App::Panel::Editor::select_tab_right',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-move-leftmost' => {
			function  => 'Kephra::App::Panel::Editor::move_tab_leftmost',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-move-rightmost' => {
			function  => 'Kephra::App::Panel::Editor::move_tab_rightmost',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-move-left' => {
			function  => 'Kephra::App::Panel::Editor::move_tab_left',
			name => '',
			help  => '',
			keys  => '',
		},
		'document-move-right' => {
			function  => 'Kephra::App::Panel::Editor::move_tab_right',
			name => '',
			help  => '',
			keys  => '',
		},
		'config-global-dialog' => {
			function  => 'Kephra::App::Dialog::config',
			name => 'Global Dialog',
			help  => '',
			keys  => 'Alt + C',
			icon  => '',
		},
		'config-keymap-dialog' => {
			function  => 'Kephra::App::Dialog::keymap',
			name => 'Keymapping',
			help  => '',
			keys  => 'Alt + K',
			icon  => '',
		},
		'help-documentation' => {
			function  => 'Kephra::App::Dialog::documentation',
			name => 'Documentation',
			help  => '',
			keys  => 'F1',
			icon  => '',
		},
		'help-homepage' => {
			function  => 'Kephra::Help::homepage',
			name => 'Homepage',
			help  => '',
			keys  => 'Ctrl + Alt + H',
			icon  => '',
		},
		'help-bugreport' => {
			function  => 'Kephra::Help::bugreport',
			name => 'Send a Wish',
			help  => '',
			keys  => 'Ctrl + Alt + B',
			icon  => '',
		},
		'help-about' => {
			function  => 'Kephra::App::Dialog::about',
			name => 'About ...',
			help  => '',
			keys  => 'Ctrl + Alt + A',
			icon  => '',
		},
	};
}

1;

__END__

file_new => {
	callref   => compiled function with maybe one option
	function  => 'Kephra::File::new',
	options   => [],
	source    => '',
	state     => '',
	event     => '',
	name      => 'New',
	help      => '',
	keys      => 'Ctrl + N',
	icon      => '',
}