/* vifm
* Copyright (C) 2011 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__OPT_HANDLERS_H__
#define VIFM__OPT_HANDLERS_H__
struct view_t;
void init_option_handlers(void);
/* Resets local options so that they use values of global options. */
void reset_local_options(struct view_t *view);
/* Loads view-specific settings into corresponding options. */
void load_view_options(struct view_t *view);
/* Clones all local options of *from into *to. The defer_slow flag might be
* used to postpone updates related to options, which will either be applied
* from the outside or should be skipped. */
void clone_local_options(const struct view_t *from, struct view_t *to,
int defer_slow);
/* Handles various kinds of :set command displaying output/errors. At least one
* of global and local must be set on call. Returns negative number on error,
* zero on success without message and positive number on success with a
* message. */
int process_set_args(const char args[], int global, int local);
/* Loads current sorting of the view into an option. */
void load_sort_option(struct view_t *view);
/* Loads current value of dot filter into an option. */
void load_dot_filter_option(const struct view_t *view);
/* Updates view columns value as if 'viewcolumns' option has been changed.
* Doesn't change actual value of the option, which is important for setting
* sorting order via sort dialog. */
void load_view_columns_option(struct view_t *view, const char value[]);
/* Loads current state of quick view into corresponding option. */
void load_quickview_option(void);
/* Loads current state of tab scopr into corresponding option. */
void load_tabscope_option(void);
/* Updates geometry related options. */
void load_geometry(void);
/* Formats string with representation of the 'classify' option value. Returns
* NULL on error or pointer, which is valid until the next invocation. */
const char * classify_to_str(void);
#endif /* VIFM__OPT_HANDLERS_H__ */
/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */
/* vim: set cinoptions+=t0 filetype=c : */
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