pub enum Internal {
Show 92 variants
back,
close_panel_ok,
close_panel_cancel,
copy_line,
copy_path,
filesystems,
focus,
help,
input_clear,
input_del_char_left,
input_del_char_below,
input_del_word_left,
input_del_word_right,
input_go_to_end,
input_go_left,
input_go_right,
input_go_to_start,
input_go_word_left,
input_go_word_right,
input_selection_copy,
input_selection_cut,
input_paste,
line_down,
line_up,
line_down_no_cycle,
line_up_no_cycle,
open_stay,
open_stay_filter,
open_leave,
mode_input,
mode_command,
previous_dir,
next_dir,
previous_match,
next_match,
next_same_depth,
no_sort,
page_down,
page_up,
parent,
panel_left,
panel_right,
panel_left_no_open,
panel_right_no_open,
previous_same_depth,
open_preview,
close_preview,
toggle_preview,
preview_image,
preview_text,
preview_binary,
print_path,
print_relative_path,
print_tree,
start_end_panel,
quit,
refresh,
root_up,
root_down,
select_first,
select_last,
select,
set_syntax_theme,
sort_by_count,
sort_by_date,
sort_by_size,
sort_by_type,
sort_by_type_dirs_first,
sort_by_type_dirs_last,
clear_stage,
stage,
unstage,
open_staging_area,
close_staging_area,
toggle_staging_area,
stage_all_files,
toggle_stage,
toggle_counts,
toggle_dates,
toggle_device_id,
toggle_files,
toggle_git_ignore,
toggle_git_file_info,
toggle_git_status,
toggle_root_fs,
toggle_hidden,
toggle_perm,
toggle_sizes,
toggle_trim_root,
toggle_second_tree,
total_search,
up_tree,
}
Variants§
back
close_panel_ok
close_panel_cancel
copy_line
copy_path
filesystems
focus
help
input_clear
input_del_char_left
input_del_char_below
input_del_word_left
input_del_word_right
input_go_to_end
input_go_left
input_go_right
input_go_to_start
input_go_word_left
input_go_word_right
input_selection_copy
input_selection_cut
input_paste
line_down
line_up
line_down_no_cycle
line_up_no_cycle
open_stay
open_stay_filter
open_leave
mode_input
mode_command
previous_dir
next_dir
previous_match
next_match
next_same_depth
no_sort
page_down
page_up
parent
panel_left
panel_right
panel_left_no_open
panel_right_no_open
previous_same_depth
open_preview
close_preview
toggle_preview
preview_image
preview_text
preview_binary
print_path
print_relative_path
print_tree
start_end_panel
quit
refresh
root_up
root_down
select_first
select_last
select
set_syntax_theme
sort_by_count
sort_by_date
sort_by_size
sort_by_type
sort_by_type_dirs_first
sort_by_type_dirs_last
clear_stage
stage
unstage
open_staging_area
close_staging_area
toggle_staging_area
stage_all_files
toggle_stage
toggle_counts
toggle_dates
toggle_device_id
toggle_files
toggle_git_ignore
toggle_git_file_info
toggle_git_status
toggle_root_fs
toggle_perm
toggle_sizes
toggle_trim_root
toggle_second_tree
total_search
up_tree
Implementations§
source§impl Internal
impl Internal
sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Examples found in repository?
More examples
src/verb/internal.rs (line 161)
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
pub fn invocation_pattern(self) -> &'static str {
match self {
Internal::focus => r"focus (?P<path>.*)?",
Internal::select => r"select (?P<path>.*)?",
Internal::line_down => r"line_down (?P<count>\d*)?",
Internal::line_up => r"line_up (?P<count>\d*)?",
Internal::line_down_no_cycle => r"line_down_no_cycle (?P<count>\d*)?",
Internal::line_up_no_cycle => r"line_up_no_cycle (?P<count>\d*)?",
Internal::set_syntax_theme => r"set_syntax_theme {theme:theme}",
_ => self.name(),
}
}
pub fn exec_pattern(self) -> &'static str {
match self {
Internal::focus => r"focus {path}",
Internal::line_down => r"line_down {count}",
Internal::line_up => r"line_up {count}",
Internal::line_down_no_cycle => r"line_down_no_cycle {count}",
Internal::line_up_no_cycle => r"line_up_no_cycle {count}",
_ => self.name(),
}
}