Skip to content

Commit

Permalink
Add missing config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-arch committed Jun 6, 2023
1 parent b886626 commit e8b1323
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ fzy
fzytest
*.o
*.d
config.h
test/acceptance/vendor/bundle
50 changes: 50 additions & 0 deletions src/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW

#define SCORE_GAP_LEADING -0.005
#define SCORE_GAP_TRAILING -0.005
#define SCORE_GAP_INNER -0.01
#define SCORE_MATCH_CONSECUTIVE 1.0
#define SCORE_MATCH_SLASH 0.9
#define SCORE_MATCH_WORD 0.8
#define SCORE_MATCH_CAPITAL 0.7
#define SCORE_MATCH_DOT 0.6

/* Time (in ms) to wait for additional bytes of an escape sequence */
#define KEYTIMEOUT 25

#define DEFAULT_TTY "/dev/tty"
#define DEFAULT_PROMPT "> "
#define DEFAULT_NUM_LINES 10
#define DEFAULT_WORKERS 0
#define DEFAULT_SHOW_INFO 0
#define DEFAULT_DELIMITER '\n'
#define DEFAULT_BENCHMARK 0
#define DEFAULT_SCORES 0
#define DEFAULT_SCROLLOFF 0
#define DEFAULT_FILTER NULL
#define DEFAULT_INIT_SEARCH NULL
#define DEFAULT_MARKER '*'
#define DEFAULT_POINTER '>'
#define DEFAULT_PAD 0
#define DEFAULT_MULTI 0
#define DEFAULT_CYCLE 0
#define DEFAULT_TAB_ACCEPTS 0
#define DEFAULT_RIGHT_ACCEPTS 0
#define DEFAULT_LEFT_ABORTS 0
#define DEFAULT_NO_COLOR 0
#define DEFAULT_REVERSE 0

#define DEFAULT_COLORS "b6b1b2b40"
#define NC "\x1b[0m" /* Reset attributes */

/* Color indices: colors (from FZY_COLORS env var) will be parsed
* exactly in this order. See tty_interface.c */
#define PROMPT_COLOR 0
#define POINTER_COLOR 1
#define MARKER_COLOR 2
#define SEL_FG_COLOR 3
#define SEL_BG_COLOR 4
#define COLOR_ITEMS_NUM 5
#define MAX_COLOR_LEN 48

#define VERSION "1.1"

0 comments on commit e8b1323

Please sign in to comment.