<commit_before>#!/usr/bin/env bash

get_tmux_option() {
  local option=$1
  local default_value=$2
  local option_value=$(tmux show-option -gqv "$option")
  if [ -z $option_value ]; then
    echo $default_value
  else
    echo $option_value
  fi
}

readonly key="$(get_tmux_option "@fpp-key" "f")"

bind-key "$key" capture-pane \\\; \
    save-buffer /tmp/tmux-buffer \\\; \
    new-window -c "#{pane_current_path}" "cat /tmp/tmux-buffer | fpp && rm /tmp/tmux-buffer"
<commit_msg>Adds missing tmux prefix.<commit_after>#!/usr/bin/env bash

get_tmux_option() {
  local option=$1
  local default_value=$2
  local option_value=$(tmux show-option -gqv "$option")
  if [ -z $option_value ]; then
    echo $default_value
  else
    echo $option_value
  fi
}

readonly key="$(get_tmux_option "@fpp-key" "f")"

tmux bind-key "$key" capture-pane \\\; \
    save-buffer /tmp/tmux-buffer \\\; \
    new-window -c "#{pane_current_path}" "cat /tmp/tmux-buffer | fpp && rm /tmp/tmux-buffer"

{'fraction_non_alphanumeric': 0.1668372569089048, 'fraction_numerical': 0.0040941658137154556, 'mean_word_length': 3.3660714285714284, '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': '5570808', 'n_tokens_mistral': 386, 'n_tokens_neox': 373, 'n_words': 82}