NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
complete.c File Reference

Pattern Auto-Completion. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "complete/lib.h"
#include "editor/lib.h"
+ Include dependency graph for complete.c:

Go to the source code of this file.

Functions

static bool is_pattern_prefix (wchar_t c)
 Check if a character is a pattern prefix.
 
static enum FunctionRetval complete_pattern (struct EnterWindowData *wdata, int op)
 Complete a NeoMutt Pattern - Implements CompleteOps::complete() -.
 

Variables

const struct CompleteOps CompletePatternOps
 Auto-Completion of Patterns.
 

Detailed Description

Pattern Auto-Completion.

Authors
  • Richard Russon

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, see http://www.gnu.org/licenses/.

Definition in file complete.c.

Function Documentation

◆ is_pattern_prefix()

static bool is_pattern_prefix ( wchar_t c)
static

Check if a character is a pattern prefix.

Parameters
cCharacter to check
Return values
trueCharacter is a pattern prefix (~, %, or =)
falseCharacter is not a pattern prefix

Definition at line 45 of file complete.c.

46{
47 return (c == '~') || (c == '%') || (c == '=');
48}
+ Here is the caller graph for this function:

Variable Documentation

◆ CompletePatternOps

const struct CompleteOps CompletePatternOps
Initial value:
= {
.complete = complete_pattern,
}
static enum FunctionRetval complete_pattern(struct EnterWindowData *wdata, int op)
Complete a NeoMutt Pattern - Implements CompleteOps::complete() -.
Definition complete.c:53

Auto-Completion of Patterns.

Definition at line 98 of file complete.c.

98 {
99 .complete = complete_pattern,
100};