This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
image_url=$1 | |
download_path=$(mktemp --suffix "tmux-preview-image") | |
max_width=$(tmux display -p '#{pane_width}') | |
max_height=$(tmux display -p '#{pane_height}') | |
curl --output $download_path --silent $image_url | |
source $(ueberzug library) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include QMK_KEYBOARD_H | |
#include "tap_dance_simulations.h" | |
typedef enum { | |
SINGLE_TAP, | |
SINGLE_HOLD, | |
MULTI_TAP, | |
// TODO: Think about tap-hold case | |
} td_state_t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef enum { | |
SINGLE_TAP, | |
SINGLE_HOLD, | |
} td_state_t; | |
static td_state_t td_state; | |
int cur_dance (qk_tap_dance_state_t *state); | |
void gui_control_finished (qk_tap_dance_state_t * state, void *user_data); | |
void gui_control_reset (qk_tap_dance_state_t* state, void *user_data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global !p | |
def on_jump(snippet, positions, function, arguments=None): | |
if not isinstance(positions, list): | |
positions = [positions] | |
for position in positions: | |
if position == "last": | |
position = len(snippet.tabstops) - 1 | |
if position == snippet.tabstop: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Standard shape values when fail to retrieve a global variable. | |
let s:standard_width = 30 | |
let s:standard_height = 10 | |
" List of all windows, which should have a fixed size and/or position. | |
let g:layout_fixed_windows = [ | |
\ { | |
\ 'buffer_name': 'Scratch', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Cache a possibly filled location list for a hiding buffer. | |
" Check if there is a non-empty list for the current buffer. | |
" Stores the list to the cache and empty the original one. | |
" The location window will be closed. | |
" | |
" Arguments: | |
" buffer - buffer to create the cache for | |
" | |
function! utils#location#cache_location_list(buffer) abort | |
if get(g:, 'dynamic_location_list_disable', v:false) | return | endif |