52 N_(
"Pin a mailbox in the sidebar (keep visible)"),
53 N_(
"sidebar_pin <mailbox> [ <mailbox> ... ]"),
54 "optionalfeatures.html#sidebar-pin" },
56 N_(
"Unpin a previously pinned mailbox in the sidebar"),
57 N_(
"sidebar_unpin { * | <mailbox> ... }"),
58 "optionalfeatures.html#sidebar-pin" },
76 if (!c_sidebar_visible)
80 if (
wdata->hil_index < 0)
87 return (*sbep)->mailbox;
106 if ((*sbep)->mailbox == m)
140 if ((*sbep)->mailbox != m)
143 struct SbEntry *sbe_remove = *sbep;
147 if (wdata->
opn_index == ARRAY_FOREACH_IDX_sbep)
158 if (wdata->
hil_index == ARRAY_FOREACH_IDX_sbep)
167 else if ((*sbep)->is_hidden)
199 wdata->
opn_index = ARRAY_FOREACH_IDX_sbep;
200 wdata->
hil_index = ARRAY_FOREACH_IDX_sbep;
204 (*sbep)->
is_hidden = !(*sbep)->mailbox->visible;
217 ac->
attrs = A_UNDERLINE;
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_REMOVE(head, elem)
Remove an entry from the array, shifting down the subsequent entries.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
Color and attribute parsing.
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
@ MT_COLOR_SIDEBAR_HIGHLIGHT
Select cursor.
#define CF_SYNONYM
Command is a synonym for another command.
#define CF_NO_FLAGS
No flags are set.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Convenience wrapper for the config headers.
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Convenience wrapper for the core headers.
struct MuttWindow * AllDialogsWindow
Parent of all Dialogs.
enum CommandResult parse_sidebar_unpin(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'sidebar_unpin' command - Implements Command::parse() -.
enum CommandResult parse_sidebar_pin(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'sidebar_pin' command - Implements Command::parse() -.
int sb_insertion_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Convenience wrapper for the gui headers.
GUI manage the main index (list of emails)
void mutt_list_free(struct ListHead *h)
Free a List AND its strings.
#define MUTT_MEM_CALLOC(n, type)
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
@ NT_WINDOW
MuttWindow has changed, NotifyWindow, EventWindow.
#define STAILQ_HEAD_INITIALIZER(head)
A curses colour and its attributes.
int attrs
Text attributes, e.g. A_BOLD.
Data shared between Index, Pager and Sidebar.
struct Mailbox * mailbox
Current Mailbox.
char * realpath
Used for duplicate detection, context comparison, and the sidebar.
bool visible
True if a result of "mailboxes".
void * wdata
Private data.
Container for Accounts, Notifications.
struct CommandArray commands
NeoMutt commands.
struct ConfigSubset * sub
Inherited config items.
Info about folders in the sidebar.
struct Mailbox * mailbox
Mailbox this represents.
bool is_hidden
Don't show, e.g. $sidebar_new_mail_only.