#include QMK_KEYBOARD_H
#ifdef USE_BABBLEPASTE
# include "babblePaste.h"
# ifdef BABL_READMUX
# define TMUX SS_LCTL("b")
bool babblePaste_readmux(uint16_t keycode) {
# ifdef BABL_MOVE
BABLM(BABL_GO_LEFT_1C, SS_TAP(X_LEFT));
BABLM(BABL_GO_RIGHT_1C, SS_TAP(X_RIGHT));
BABLM(BABL_GO_LEFT_WORD, SS_LALT("b"));
BABLM(BABL_GO_RIGHT_WORD, SS_LALT("f"));
BABLM(BABL_GO_START_LINE, SS_LCTL("a"));
BABLM(BABL_GO_END_LINE, SS_LCTL("e"));
BABLM(BABL_GO_NEXT_LINE, SS_LCTL("n"));
BABLM(BABL_GO_PREV_LINE, SS_LCTL("p"));
BABLM(BABL_PGUP, SS_TAP(X_PGUP));
BABLM(BABL_PGDN, SS_TAP(X_PGDOWN));
BABLM(BABL_DEL_RIGHT_1C, SS_LCTL("d"));
BABLM(BABL_DEL_LEFT_WORD, SS_LCTL("w")); BABLM(BABL_DEL_RIGHT_WORD, SS_LALT("d"));
BABLM(BABL_DEL_TO_LINE_END, SS_LCTL("k"));
BABLM(BABL_DEL_TO_LINE_START, SS_LCTL("u"));
BABLM(BABL_MODE, "Readline ");
# endif
# ifdef BABL_OSKEYS
BABLM(BABL_UNDO, SS_LALT("r"));
BABLM(BABL_REDO, SS_LCTL("x") "c"); BABLM(BABL_CUT, SS_LCTL("k")); BABLM(BABL_PASTE, SS_LCTL("y"));
BABLM(BABL_SELECT_ALL, SS_LCTL("aky"));
BABLM(BABL_FIND, SS_LCTL("r")); BABLM(BABL_FIND_NEXT, SS_LCTL("r"));
BABLM(BABL_FIND_PREV, SS_LCTL("s"));
BABLM(BABL_RUNAPP, TMUX "c"); BABLM(BABL_SWITCH_APP_NEXT, TMUX "n"); BABLM(BABL_SWITCH_APP_LAST, TMUX "p"); BABLM(BABL_CLOSE_APP, TMUX "d"); BABLM(BABL_HELP, TMUX IMSFT(X_SLASH));
BABLM(BABL_LOCK, TMUX "L"); BABLM(BABL_SCREENCAPTURE, TMUX ":capture-pane");
# endif
# ifdef BABL_BROWSER
# ifdef BABL_MAC
BABLM(BABL_BROWSER_NEW_TAB, IMGUI(X_T));
BABLM(BABL_BROWSER_CLOSE_TAB, SS_LGUI("w"));
BABLM(BABL_BROWSER_NEXT_TAB, IMCTL(X_TAB));
BABLM(BABL_BROWSER_PREV_TAB, OMSFT(IMCTL(X_TAB)));
# endif
# endif
# ifdef BABL_APP
BABLM(BABL_SPLIT_FRAME_VERT, TMUX IMSFT(X_5));
BABLM(BABL_UNSPLIT_FRAME_VERT, TMUX IMSFT(X_1));
BABLM(BABL_SPLIT_FRAME_HORIZONTAL, TMUX IMSFT(X_QUOTE));
BABLM(BABL_UNSPLIT_FRAME_HORIZONTAL, SS_LCTL("b") "x");
BABLM(BABL_NEXT_FRAME, SS_LCTL("b") "o");
BABLM(BABL_PREV_FRAME, SS_LCTL("w") SS_TAP(X_SCOLON));
# endif
return false;
}
# endif
#endif