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.
Commit 1291d352eec4d318f62991cc39d7b65a8152a60a

Don't pass view to menus_to_custom_view()
Current view is part of the menu_state_t, just take it from its
field. modes/menu.c and menus/menus.c should have the views
synchronized anyway.
Author: xaizek
Author date (UTC): 2024-12-02 15:23
Committer name: xaizek
Committer date (UTC): 2024-12-02 15:23
Parent(s): c722e0ddf79fe9c4813cbd97943cc6475835d57a
Signing key: 99DC5E4DB05F6BE2
Tree: 445a5fb036b7b0e541bf584cb274a6c18ab8b1ae
File Lines added Lines deleted
src/menus/menus.c 2 1
src/menus/menus.h 1 1
src/modes/menu.c 1 1
File src/menus/menus.c changed (mode: 100644) (index 35c4c64f1..3e61356ff)
... ... menus_def_khandler(view_t *view, menu_data_t *ms, const wchar_t keys[])
993 993 } }
994 994
995 995 int int
996 menus_to_custom_view(menu_state_t *ms, view_t *view, int very)
996 menus_to_custom_view(menu_state_t *ms, int very)
997 997 { {
998 998 int i; int i;
999 999 char *current = NULL; char *current = NULL;
1000 view_t *view = ms->view;
1000 1001 const char *const rel_base = get_relative_path_base(ms->d, view); const char *const rel_base = get_relative_path_base(ms->d, view);
1001 1002
1002 1003 flist_custom_start(view, ms->d->title); flist_custom_start(view, ms->d->title);
File src/menus/menus.h changed (mode: 100644) (index 7c40a8635..db7334c0e)
... ... const menu_data_t * menus_get_stash(int index, int *current);
143 143
144 144 /* Moves menu items into custom view. Returns zero on success, otherwise /* Moves menu items into custom view. Returns zero on success, otherwise
145 145 * non-zero is returned. */ * non-zero is returned. */
146 int menus_to_custom_view(menu_state_t *ms, struct view_t *view, int very);
146 int menus_to_custom_view(menu_state_t *ms, int very);
147 147
148 148 /* Either makes a menu or custom view out of command output. Returns non-zero /* Either makes a menu or custom view out of command output. Returns non-zero
149 149 * if status bar message should be saved. */ * if status bar message should be saved. */
File src/modes/menu.c changed (mode: 100644) (index 914636dbc..4bed2d586)
... ... cmd_b(key_info_t key_info, keys_info_t *keys_info)
736 736 static void static void
737 737 dump_into_custom_view(int very) dump_into_custom_view(int very)
738 738 { {
739 if(menus_to_custom_view(menu->state, view, very) != 0)
739 if(menus_to_custom_view(menu->state, very) != 0)
740 740 { {
741 741 show_error_msg("Menu transformation", show_error_msg("Menu transformation",
742 742 "No valid paths discovered in menu content"); "No valid paths discovered in menu content");
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