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 5e5e55b4d422d9c4662e1ecd72a859f80c26db8a

Minor variable and comment updates
Author: xaizek
Author date (UTC): 2017-06-14 14:28
Committer name: xaizek
Committer date (UTC): 2017-06-14 14:28
Parent(s): 24c8c03f6335fd4be89c6d28d405533f1daea1ca
Signing key: 99DC5E4DB05F6BE2
Tree: 32722e555cf36a8c9cdb56df8b1f447b18db9e01
File Lines added Lines deleted
src/cmd_handlers.c 2 2
src/filelist.c 1 0
src/flist_sel.c 2 3
src/flist_sel.h 1 1
src/macros.h 2 2
File src/cmd_handlers.c changed (mode: 100644) (index 88fea764f..708605bd8)
... ... get_reg(const char arg[], int *reg)
4411 4411 static int static int
4412 4412 usercmd_cmd(const cmd_info_t *cmd_info) usercmd_cmd(const cmd_info_t *cmd_info)
4413 4413 { {
4414 char *expanded_com = NULL;
4414 char *expanded_com;
4415 4415 MacroFlags flags; MacroFlags flags;
4416 4416 int external = 1; int external = 1;
4417 4417 int bg; int bg;
4418 4418 int save_msg = 0; int save_msg = 0;
4419 4419 int handled; int handled;
4420 4420
4421 /* Expand macros in a binded command. */
4421 /* Expand macros in a bound command. */
4422 4422 expanded_com = expand_macros(cmd_info->cmd, cmd_info->args, &flags, expanded_com = expand_macros(cmd_info->cmd, cmd_info->args, &flags,
4423 4423 get_cmd_id(cmd_info->cmd) == COM_EXECUTE); get_cmd_id(cmd_info->cmd) == COM_EXECUTE);
4424 4424
File src/filelist.c changed (mode: 100644) (index 6611eea8c..d655d5194)
... ... zap_entries(FileView *view, dir_entry_t *entries, int *count, zap_filter filter,
1885 1885
1886 1886 if(filter(view, entry, arg)) if(filter(view, entry, arg))
1887 1887 { {
1888 /* We're keeping this entry. */
1888 1889 if(i != j) if(i != j)
1889 1890 { {
1890 1891 entries[j] = entries[i]; entries[j] = entries[i];
File src/flist_sel.c changed (mode: 100644) (index c1d3a8d4d..8d5040508)
... ... select_unselect_entry(FileView *view, dir_entry_t *entry, int select)
248 248 } }
249 249
250 250 int int
251 flist_sel_by_filter(FileView *view, const char pattern[], int erase_old,
252 int select)
251 flist_sel_by_filter(FileView *view, const char cmd[], int erase_old, int select)
253 252 { {
254 253 trie_t *selection_trie; trie_t *selection_trie;
255 254 char **files; char **files;
256 255 int nfiles; int nfiles;
257 256 int i; int i;
258 257
259 if(run_cmd_for_output(pattern, &files, &nfiles) != 0)
258 if(run_cmd_for_output(cmd, &files, &nfiles) != 0)
260 259 { {
261 260 status_bar_error("Failed to start/read output of external command"); status_bar_error("Failed to start/read output of external command");
262 261 return 1; return 1;
File src/flist_sel.h changed (mode: 100644) (index f97e050cb..61102025b)
... ... void flist_sel_by_range(FileView *view, int begin, int end, int select);
56 56 /* Selects or unselects entries that match list of files supplied by external /* Selects or unselects entries that match list of files supplied by external
57 57 * utility. Returns zero on success, otherwise non-zero is returned and error * utility. Returns zero on success, otherwise non-zero is returned and error
58 58 * message is printed on statusbar. */ * message is printed on statusbar. */
59 int flist_sel_by_filter(FileView *view, const char pattern[], int erase_old,
59 int flist_sel_by_filter(FileView *view, const char cmd[], int erase_old,
60 60 int select); int select);
61 61
62 62 /* Selects or unselects entries that match given pattern. Returns zero on /* Selects or unselects entries that match given pattern. Returns zero on
File src/macros.h changed (mode: 100644) (index 1fc3aa30d..005ab7f19)
... ... typedef struct
60 60 } }
61 61 custom_macro_t; custom_macro_t;
62 62
63 /* args and flags parameters can equal NULL. The string returned needs to be
64 * freed in the calling function. After executing flags is one of MF_*
63 /* args and flags parameters can equal NULL. The string returned needs to be
64 * freed in the calling function. After executing flags is one of MF_*
65 65 * values. */ * values. */
66 66 char * expand_macros(const char command[], const char args[], MacroFlags *flags, char * expand_macros(const char command[], const char args[], MacroFlags *flags,
67 67 int for_shell); int for_shell);
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