aboutsummaryrefslogtreecommitdiffhomepage
path: root/qbuffers.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-10 20:08:51 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-10 20:08:51 +0100
commitf120e3e367f01f006bd5ddfd9f1ac018273e75e3 (patch)
tree65e51cfbc6bc05eb25d331bcb86ed642a1af6bad /qbuffers.h
parent5aa548cd63edb8ba12c656300a2a5f0ff62a7b36 (diff)
downloadsciteco-f120e3e367f01f006bd5ddfd9f1ac018273e75e3.tar.gz
filename autocompletion using <CTRL/T> and <TAB>
* <TAB> autocompletion only in specified states * GtkInfoPopup widget to display possible completions, written using Gob2
Diffstat (limited to 'qbuffers.h')
-rw-r--r--qbuffers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/qbuffers.h b/qbuffers.h
index 0f1c16e..eb4c2d4 100644
--- a/qbuffers.h
+++ b/qbuffers.h
@@ -1,6 +1,7 @@
#ifndef __QBUFFERS_H
#define __QBUFFERS_H
+#include <string.h>
#include <bsd/sys/queue.h>
#include <glib.h>
@@ -121,4 +122,13 @@ private:
State *done(const gchar *str);
};
+/*
+ * Auxiliary functions
+ */
+static inline bool
+is_glob_pattern(const gchar *str)
+{
+ return strchr(str, '*') || strchr(str, '?');
+}
+
#endif