#include QMK_KEYBOARD_H
#ifdef USE_BABBLEPASTE
# include "babblePaste.h"
# ifdef BABL_MAC
bool babblePaste_mac(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, IMALT(X_LEFT));
BABLM(BABL_GO_RIGHT_WORD, IMALT(X_RIGHT));
BABLM(BABL_GO_START_LINE, IMGUI(X_LEFT));
BABLM(BABL_GO_END_LINE, IMGUI(X_RIGHT));
BABLM(BABL_GO_START_DOC, IMGUI(X_UP));
BABLM(BABL_GO_END_DOC, IMGUI(X_DOWN));
BABLM(BABL_GO_NEXT_LINE, SS_TAP(X_DOWN));
BABLM(BABL_GO_PREV_LINE, SS_TAP(X_UP));
BABLM(BABL_GO_PARA_START, IMALT(X_UP));
BABLM(BABL_DEL_RIGHT_1C, SS_TAP(X_DELETE));
BABLM(BABL_GO_PARA_END, IMALT(X_DOWN));
BABLM(BABL_PGDN, SS_TAP(X_PGDOWN));
BABLM(BABL_PGUP, SS_TAP(X_PGUP));
BABLM(BABL_DEL_LEFT_WORD, IMALT(X_BSPACE));
BABLM(BABL_DEL_RIGHT_WORD, IMALT(X_DELETE));
BABLM(BABL_DEL_TO_LINE_END, OMSFT(IMGUI(X_RIGHT)) SS_TAP(X_BSPACE)); BABLM(BABL_DEL_TO_LINE_START, OMSFT(IMGUI(X_LEFT)) SS_TAP(X_BSPACE));
BABLM(BABL_MODE, "Mac ");
# endif
# ifdef BABL_OSKEYS
BABLM(BABL_UNDO, SS_LGUI("z"));
BABLM(BABL_REDO, SS_LGUI("y"));
BABLM(BABL_CUT, SS_LGUI("x"));
BABLM(BABL_COPY, SS_LGUI("c"));
BABLM(BABL_PASTE, SS_LGUI("v"));
BABLM(BABL_SELECT_ALL, SS_LGUI("a"));
BABLM(BABL_FIND, SS_LGUI("f"));
BABLM(BABL_FIND_NEXT, SS_LGUI("g"));
BABLM(BABL_FIND_PREV, OMSFT(IMGUI(X_G))); BABLM(BABL_FIND_PREV, SS_LGUI("g"));
BABLM(BABL_FIND_REPLACE, SS_LGUI("f"));
BABLM(BABL_RUNAPP, SS_LGUI(" "));
BABLM(BABL_SWITCH_APP_NEXT, IMGUI(X_TAB));
BABLM(BABL_SWITCH_APP_LAST, OMSFT(IMGUI(X_TAB)));
BABLM(BABL_WINDOW_NEXT, IMGUI(X_GRAVE));
BABLM(BABL_WINDOW_PREV, OMSFT(IMGUI(X_GRAVE)));
BABLM(BABL_WINDOW_NEW, IMGUI(X_N));
BABLM(BABL_CLOSE_APP, SS_LGUI("q"));
BABLM(BABL_HELP, OMSFT(IMGUI(X_SLASH)));
BABLM(BABL_LOCK, OMCTL(IMALT(X_L)));
BABLM(BABL_SCREENCAPTURE, OMSFT(OMGUI(IMALT(X_4))) IMGUI(X_SPACE) "preview" SS_LGUI("d"));
BABLM(BABL_SWITCH_KEYBOARD_LAYOUT, IMCTL(X_SPACE));
# endif
# ifdef BABL_BROWSER
BABLM(BABL_BROWSER_NEW_TAB, IMGUI(X_T));
BABLM(BABL_BROWSER_CLOSE_TAB, SS_LGUI("w"));
BABLM(BABL_BROWSER_REOPEN_LAST_TAB, OMSFT(SS_LGUI("t")));
BABLM(BABL_BROWSER_NEXT_TAB, OMGUI(IMALT(X_RIGHT)));
BABLM(BABL_BROWSER_PREV_TAB, OMGUI(IMALT(X_LEFT)));
BABLM(BABL_BROWSER_URL_BAR, SS_LGUI("l"));
BABLM(BABL_BROWSER_FORWARD, IMGUI(X_RIGHT));
BABLM(BABL_BROWSER_BACK, IMGUI(X_LEFT));
BABLM(BABL_BROWSER_FIND, SS_LGUI("f"));
BABLM(BABL_BROWSER_BOOKMARK, SS_LGUI("d"));
BABLM(BABL_BROWSER_RELOAD, OMGUI(SS_LSFT("r"))); BABLM(BABL_BROWSER_FULLSCREEN, OMGUI(SS_LCTRL("p")));
BABLM(BABL_BROWSER_ZOOM_IN, IMGUI(X_KP_PLUS)); BABLM(BABL_BROWSER_ZOOM_OUT, IMGUI(X_KP_MINUS));
# ifdef BABL_BROWSER_CHROME
BABLM(BABL_BROWSER_VIEWSRC, SS_LGUI("u")); BABLM(BABL_BROWSER_DEV_TOOLS, OMGUI(SS_LALT("i"))); # endif
# ifdef BABL_BROWSER_SAFARI
BABLM(BABL_BROWSER_VIEWSRC, OMGUI(IMALT(X_U))); # endif
# endif
# ifdef BABL_APP
BABLM(BABL_APP_SAVE, SS_LGUI("s"));
# ifdef BABL_APP_EDITOR
# ifdef BABL_APP_SUBLIME
BABLM(BABL_APP_MULTI_SELECT, OMCTL(IMGUI(X_G))); BABLM(BABL_APP_PASTE_VALUES, OMSFT(IMGUI(X_V))); # endif # endif
# ifdef BABL_APP_CELLS
# ifdef BABL_APP_MSOFFICE
BABLM(BABL_APP_CENTER_ALIGN, IMGUI(X_E));
BABLM(BABL_APP_SCROLL_ACTIVE_CELL, IMCTL(X_BSPACE));
BABLM(BABL_NEWLINE_IN_CELL, IMALT(X_ENTER));
BABLM(BABL_INSERT_COMMENT, IMSFT(X_F2));
BABLM(BABL_INSERT_COL_LEFT, IMCTL(X_I));
BABLM(BABL_INSERT_ROW, OMCTL(IMSFT(X_KP_PLUS)));
BABLM(BABL_DELETE_ROW, IMCTL(X_KP_MINUS));
BABLM(BABL_SELECT_COL, IMCTL(X_SPACE));
BABLM(BABL_SELECT_ROW, IMSFT(X_SPACE));
# endif
# ifdef BABL_APP_GOOGLE
BABLM(BABL_APP_CENTER_ALIGN, OMSFT(IMGUI(X_E)));
BABLM(BABL_APP_SCROLL_ACTIVE_CELL, IMCTL(X_BSPACE));
BABLM(BABL_NEWLINE_IN_CELL, IMALT(X_ENTER));
BABLM(BABL_INSERT_COMMENT, IMSFT(X_F2));
BABLM(BABL_APP_CLEAR_FORMATTING, IMGUI(X_BSLASH));
BABLM(BABL_DELETE_ROW, OMCTL(IMGUI(X_G)));
BABLM(BABL_INSERT_COL_LEFT, OMALT(IMCTL(X_I)) "c"); BABLM(BABL_INSERT_ROW, OMALT(IMCTL(X_I)) "b"); BABLM(BABL_SELECT_COL, IMCTL(X_SPACE));
BABLM(BABL_SELECT_ROW, IMSFT(X_SPACE));
BABLM(BABL_DELETE_ROW, OMALT(IMCTL(X_KP_MINUS))); # endif
# endif
# ifdef BABL_APP_WINDOWSPLITTING
BABLM(BABL_SPLIT_FRAME_HORIZONTAL, SS_LGUI("d"));
BABLM(BABL_UNSPLIT_FRAME_HORIZONTAL, OMSFT(IMGUI(X_D)));
# endif
# endif
return false;
}
# endif
#endif