rofi
1.7.0
|
Functions | |
void | history_set (const char *filename, const char *entry) __attribute__((nonnull)) |
void | history_remove (const char *filename, const char *entry) __attribute__((nonnull)) |
char ** | history_get_list (const char *filename, unsigned int *length) __attribute__((nonnull)) |
Implements a very simple history module that can be used by a Mode.
This uses the following options from the config object:
char** history_get_list | ( | const char * | filename, |
unsigned int * | length | ||
) |
filename | The filename of the history cache. |
length | The length of the returned list. |
Gets the entries in the list (in order of usage)
Definition at line 323 of file history.c.
References __history_get_element_list_fields(), config, and Settings::disable_history.
Referenced by get_apps(), get_apps_history(), and get_ssh().
void history_remove | ( | const char * | filename, |
const char * | entry | ||
) |
filename | The filename of the history cache. |
entry | The entry to remove |
Removes the entry from the history.
Definition at line 259 of file history.c.
References __history_get_element_list(), __history_write_element_list(), config, and Settings::disable_history.
Referenced by delete_entry(), delete_entry_history(), delete_ssh(), and exec_cmd().
void history_set | ( | const char * | filename, |
const char * | entry | ||
) |
filename | The filename of the history cache. |
entry | The entry to add/increment |
Sets the entry in the history, if it exists its use-count is incremented.
Definition at line 178 of file history.c.
References __history_get_element_list(), __history_write_element_list(), config, Settings::disable_history, Settings::ignored_prefixes, __element::index, and __element::name.
Referenced by exec_cmd(), exec_cmd_entry(), exec_ssh(), and launch_link_entry().