<commit_before>---
layout: post
title: "fuzzy finding windows"
category: fzf
tags: [fzf]
comments: true
---
{% include JB/setup %}
[fzf](https://github.com/junegunn/fzf), truly awesome.  
  
  
	#two spaces after the -d backslash, avoiding nested quote hell
	alias winact='wmctrl -i -R $(wmctrl -l | fzf | cut -d\  -f1)'
  
  
  
<img src="/images/screen_fzf_winact.gif" width="1000" >
  
finally, my bad habit of opening new browser windows instead of tabs pays off!
  <commit_msg>blog content<commit_after>---
layout: post
title: "fuzzy finding windows"
category: fzf
tags: [fzf]
comments: true
---
{% include JB/setup %}
[fzf](https://github.com/junegunn/fzf), truly awesome.  
  
  
	#two spaces after the -d backslash, avoiding nested quote hell
	alias winact='wmctrl -i -R $(wmctrl -l | fzf | cut -d\  -f1)'
  
  
  
<img src="/images/screen_fzf_winact.gif" width="1000" >
  
finally, my bad habit of opening new browser windows instead of tabs pays off!  
it may seem silly, but despite trying to limit myself, I often have a few dozen windows open each on 2 or more browser(s)/instances...
  
(I changed away from using xdotool, to using just wmctrl after I did the screen capture.)
  
{'fraction_non_alphanumeric': 0.11902766135792121, 'fraction_numerical': 0.009220452640402346, 'mean_word_length': 3.422222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '515606', 'n_tokens_mistral': 431, 'n_tokens_neox': 413, 'n_words': 151}