<commit_before>/* curses attributes for the currently focused window */
/* valid curses attributes are listed below they can be ORed
 *
 * A_NORMAL        Normal display (no highlight)
 * A_STANDOUT      Best highlighting mode of the terminal.
 * A_UNDERLINE     Underlining
 * A_REVERSE       Reverse video
 * A_BLINK         Blinking
 * A_DIM           Half bright
 * A_BOLD          Extra bright or bold
 * A_PROTECT       Protected mode
 * A_INVIS         Invisible or blank mode
 *
 */
#define BLUE            197

#define SELECTED_ATTR   A_NORMAL
#define SELECTED_FG     BLUE
#define SELECTED_BG     -1
/* curses attributes for normal (not selected) windows */
#define NORMAL_ATTR     A_NORMAL
#define NORMAL_FG       241
#define NORMAL_BG       -1
/* status bar (command line option -s) position */
#define BARPOS		BarTop /* BarBot, BarOff */
/* curses attributes for the status bar */
#define BAR_ATTR        A_NORMAL
#define BAR_FG          BLUE
#define BAR_BG          -1
/* determines whether the statusbar text should be right or left aligned */
#define BAR_ALIGN       ALIGN_RIGHT
/* separator between window title and window number */
#define SEPARATOR " | "
/* printf format string for the window title, first %s
 * is replaced by the title, second %s is replaced by
 * the SEPARATOR, %d stands for the window number */
#define TITLE "[%s%s#%d]"
/* master width factor [0.1 .. 0.9] */
#define MWFACT  0.5
/* scroll back buffer size in lines */
#define SCROLL_BUF_SIZE 100000

#include "tile.c"
#include "grid.c"
#include "bstack.c"
#include "fullscreen.c"

/* by default the first layout entry is used */
Layout layouts[] = {
	{ "[]=", tile },
	{ "+++", grid },
	{ "TTT", bstack },
	{ "[ ]", fullscreen },
};

#define MOD CTRL('g')

/* you can at most specifiy MAX_ARGS (2) number of arguments */
Key keys[] = {
	{ MOD, '3',	    { create,	      { NULL }			  } },
	{ MOD, '0',	    { killclient,     { NULL }			  } },
	{ MOD, 'o',	    { focusnext,      { NULL }			  } },
	{ MOD, 'f',	    { focusnextnm,    { NULL }			  } },
	{ MOD, 'b',	 { focusprevnm,	   { NULL }		       } },
	{ MOD, 'i',	 { focusprev,	   { NULL }		       } },
	{ MOD, 't',	 { setlayout,	   { "[]=" }		       } },
	{ MOD, 'g',	 { setlayout,	   { "+++" }		       } },
	{ MOD, 's',	 { setlayout,	   { "TTT" }		       } },
	{ MOD, '1',	 { setlayout,	   { "[ ]" }		       } },
	{ MOD, ' ',	 { setlayout,	   { NULL }		       } },
	{ MOD, ',',	 { setmwfact,	   { "-0.05" }		       } },
	{ MOD, '.',	 { setmwfact,	   { "+0.05" }		       } },
	{ MOD, 'm',	 { toggleminimize, { NULL }		       } },
#ifdef CONFIG_STATUSBAR
	{ MOD, 'u',       { togglebar,      { NULL }                    } },
#endif
#ifdef CONFIG_MOUSE
	{ MOD, 'M',       { mouse_toggle,   { NULL }                    } },
#endif
	{ MOD, '\n',	    { zoom ,	      { NULL }			  } },
	{ MOD, '!',	    { focusn,	      { "1" }			  } },
	{ MOD, '@',	    { focusn,	      { "2" }			  } },
	{ MOD, '#',	    { focusn,	      { "3" }			  } },
	{ MOD, '$',	    { focusn,	      { "4" }			  } },
	{ MOD, '%',	    { focusn,	      { "5" }			  } },
	{ MOD, '^',	    { focusn,	      { "6" }			  } },
	{ MOD, '&',	    { focusn,	      { "7" }			  } },
	{ MOD, '*',	    { focusn,	      { "8" }			  } },
	{ MOD, '(',	    { focusn,	      { "9" }			  } },
	{ MOD, 'q',	    { quit,	      { NULL }			  } },
	{ MOD, 'G',	    { escapekey,      { NULL }			  } },
	{ MOD, 'a',       { togglerunall,   { NULL }                    } },
	{ MOD, 'r',	    { redraw,	      { NULL }			  } },
	{ MOD, 'X',	    { lock,	      { NULL }			  } },
	{ MOD, 'B',	    { togglebell,     { NULL }			  } },
	{ MOD, 'p',	    { scrollback,     { "-1" }			  } },
	{ MOD, 'n',	    { scrollback,     { "1"  }			  } },
	{ MOD, '?',	    { create,	      { "man dvtm", "dvtm help" } } },
};

/* possible values for the mouse buttons are listed below:
 *
 * BUTTON1_PRESSED          mouse button 1 down
 * BUTTON1_RELEASED         mouse button 1 up
 * BUTTON1_CLICKED          mouse button 1 clicked<commit_msg>use q as global modifier and remove quit shortcut<commit_after>/* curses attributes for the currently focused window */
/* valid curses attributes are listed below they can be ORed
 *
 * A_NORMAL        Normal display (no highlight)
 * A_STANDOUT      Best highlighting mode of the terminal.
 * A_UNDERLINE     Underlining
 * A_REVERSE       Reverse video
 * A_BLINK         Blinking
 * A_DIM           Half bright
 * A_BOLD          Extra bright or bold
 * A_PROTECT       Protected mode
 * A_INVIS         Invisible or blank mode
 *
 */
#define BLUE            197

#define SELECTED_ATTR   A_NORMAL
#define SELECTED_FG     BLUE
#define SELECTED_BG     -1
/* curses attributes for normal (not selected) windows */
#define NORMAL_ATTR     A_NORMAL
#define NORMAL_FG       241
#define NORMAL_BG       -1
/* status bar (command line option -s) position */
#define BARPOS		BarTop /* BarBot, BarOff */
/* curses attributes for the status bar */
#define BAR_ATTR        A_NORMAL
#define BAR_FG          BLUE
#define BAR_BG          -1
/* determines whether the statusbar text should be right or left aligned */
#define BAR_ALIGN       ALIGN_RIGHT
/* separator between window title and window number */
#define SEPARATOR " | "
/* printf format string for the window title, first %s
 * is replaced by the title, second %s is replaced by
 * the SEPARATOR, %d stands for the window number */
#define TITLE "[%s%s#%d]"
/* master width factor [0.1 .. 0.9] */
#define MWFACT  0.5
/* scroll back buffer size in lines */
#define SCROLL_BUF_SIZE 100000

#include "tile.c"
#include "grid.c"
#include "bstack.c"
#include "fullscreen.c"

/* by default the first layout entry is used */
Layout layouts[] = {
	{ "[]=", tile },
	{ "+++", grid },
	{ "TTT", bstack },
	{ "[ ]", fullscreen },
};

#define MOD CTRL('q')

/* you can at most specifiy MAX_ARGS (2) number of arguments */
Key keys[] = {
	{ MOD, '3',	    { create,	      { NULL }			  } },
	{ MOD, '0',	    { killclient,     { NULL }			  } },
	{ MOD, 'o',	    { focusnext,      { NULL }			  } },
	{ MOD, 'f',	    { focusnextnm,    { NULL }			  } },
	{ MOD, 'b',	 { focusprevnm,	   { NULL }		       } },
	{ MOD, 'i',	 { focusprev,	   { NULL }		       } },
	{ MOD, 't',	 { setlayout,	   { "[]=" }		       } },
	{ MOD, 'g',	 { setlayout,	   { "+++" }		       } },
	{ MOD, 's',	 { setlayout,	   { "TTT" }		       } },
	{ MOD, '1',	 { setlayout,	   { "[ ]" }		       } },
	{ MOD, ' ',	 { setlayout,	   { NULL }		       } },
	{ MOD, ',',	 { setmwfact,	   { "-0.05" }		       } },
	{ MOD, '.',	 { setmwfact,	   { "+0.05" }		       } },
	{ MOD, 'm',	 { toggleminimize, { NULL }		       } },
#ifdef CONFIG_STATUSBAR
	{ MOD, 'u',       { togglebar,      { NULL }                    } },
#endif
#ifdef CONFIG_MOUSE
	{ MOD, 'M',       { mouse_toggle,   { NULL }                    } },
#endif
	{ MOD, '\n',	    { zoom ,	      { NULL }			  } },
	{ MOD, '!',	    { focusn,	      { "1" }			  } },
	{ MOD, '@',	    { focusn,	      { "2" }			  } },
	{ MOD, '#',	    { focusn,	      { "3" }			  } },
	{ MOD, '$',	    { focusn,	      { "4" }			  } },
	{ MOD, '%',	    { focusn,	      { "5" }			  } },
	{ MOD, '^',	    { focusn,	      { "6" }			  } },
	{ MOD, '&',	    { focusn,	      { "7" }			  } },
	{ MOD, '*',	    { focusn,	      { "8" }			  } },
	{ MOD, '(',	    { focusn,	      { "9" }			  } },
        //{ MOD, 'q',	    { quit,	      { NULL }			  } },
	{ MOD, 'G',	    { escapekey,      { NULL }			  } },
	{ MOD, 'a',       { togglerunall,   { NULL }                    } },
	{ MOD, 'r',	    { redraw,	      { NULL }			  } },
	{ MOD, 'X',	    { lock,	      { NULL }			  } },
	{ MOD, 'B',	    { togglebell,     { NULL }			  } },
	{ MOD, 'p',	    { scrollback,     { "-1" }			  } },
	{ MOD, 'n',	    { scrollback,     { "1"  }			  } },
	{ MOD, '?',	    { create,	      { "man dvtm", "dvtm help" } } },
};

/* possible values for the mouse buttons are listed below:
 *
 * BUTTON1_PRESSED          mouse button 1 down
 * BUTTON1_RELEASED         mouse button 1 up
 * BUTTON1_CLICKED          mouse button 1 clicked
{'fraction_non_alphanumeric': 0.17050978436993644, 'fraction_numerical': 0.011965598903153433, 'mean_word_length': 1.7919276270006959, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7067283', 'n_tokens_mistral': 3122, 'n_tokens_neox': 2945, 'n_words': 753}