commit 0fd833e70f72db181b2c04c2e7120c089d3d77fa
parent 6afe4f9c90c2c2988c918183a8ba7cbf15e89bdc
Author: bpaul <bpaul@bpaul.xyz>
Date: Thu, 20 May 2021 16:10:45 +1000
fzf
Diffstat:
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/linux-blog/2.html b/linux-blog/2.html
@@ -0,0 +1,46 @@
+<html>
+ <head>
+ <title>
+ bpaul blog
+ </title>
+ </head>
+ <body>
+ <a href="/linux-blog/">back</a>
+
+ <h1>fzf is better</h1>
+ <p>
+ date: 20/05/21<br>
+ fzf is better than dmenu!
+ The problem with dmenu is that you cant do things with it in the terminal (well you can but it might be weird) like cding.
+ But with fzf, you can!
+ My favourite thing about fzf so far is probably the fzf-tmux script that fzf comes with.
+ But yeah fzf is basically just dmenu but better (oh yeah it is also faster i think).<br><br>
+
+ Another thing about fzf is the vim integration.
+ It is very useful!<br><br>
+
+ Here is a list of some cool fzf scripts:<br>
+ <a href="https://github.com/junegunn/fzf/wiki/Examples#changing-directory)">fd</a><br><br>
+ fh (Search command history and run command)<br>
+ This is basically just CTRL-r<br><br>
+ <pre><code>
+fh() {
+ eval $(history -n | fzf-tmux -r +m)
+}
+ </code></pre><br>
+
+ Here is a list of some cool fzf vim thingos:<br>
+ Colorscheme menu (lua lol):<br>
+ <pre><code>
+function colourscheme()
+vim.api.nvim_eval('fzf#run(fzf#wrap({"source":luaeval("{'..string.gsub(vim.api.nvim_eval("globpath(&rtp, 'colors/*.vim')") .. '\n','.-/colors/(.-).vim\n',"'%1',")..'}"),"sink":"colorscheme"}))')
+end
+ </code></pre><br>
+ Basically it gets the colors with globpath and then does regex stuff then feeds it into fzf with the colorscheme sink (sinks are the commands that get run with the thing selected).<br><br>
+
+ <br>
+
+ I might add more stuff here later
+ </p>
+ </body>
+</html>
diff --git a/linux-blog/index.html b/linux-blog/index.html
@@ -14,5 +14,6 @@
<br>
<a href="/linux-blog/1.html">1. dmenu is op (01/03/2021)</a>
+ <a href="/linux-blog/2.html">2. fzf is better (20/05/2021)</a>
</body>
</html>