From 67fc55e0de0a3618ee7b0e96e7431fcb8661fc91 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Fri, 13 Jun 2025 00:47:32 -0500 Subject: [PATCH] 2025-06-12 | TUI Challange, Day 5 --- content/post/2025/06/tui-challenge:-day-3.md | 3 +- content/post/2025/06/tui-challenge:-day-4.md | 3 +- content/post/2025/06/tui-challenge:-day-5.md | 35 ++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 content/post/2025/06/tui-challenge:-day-5.md diff --git a/content/post/2025/06/tui-challenge:-day-3.md b/content/post/2025/06/tui-challenge:-day-3.md index 0d7cf105..52c5e9b1 100644 --- a/content/post/2025/06/tui-challenge:-day-3.md +++ b/content/post/2025/06/tui-challenge:-day-3.md @@ -8,7 +8,8 @@ series: ["tuichallenge"] summary: "A Web of Trouble" --- -Day 3 of the TUI Challenge is about browsing the web in the terminal. I use to use browsers like +# Day 3 of the TUI Challenge is about browsing the web in the terminal. +I use to use browsers like [lynx](https://lynx.invisible-island.net) or [elinks](http://elinks.or.cz) back in the early days of the web when I had a slow connection like dial-up or a wireless modem from the late 1990's. Back then, web sites were much simpler than today. An advance web site might have tables! So, in those days, a text browser worked well. But, how about now in the diff --git a/content/post/2025/06/tui-challenge:-day-4.md b/content/post/2025/06/tui-challenge:-day-4.md index c70d801f..23f68b2a 100644 --- a/content/post/2025/06/tui-challenge:-day-4.md +++ b/content/post/2025/06/tui-challenge:-day-4.md @@ -8,7 +8,8 @@ series: ["tuichallenge"] summary: "A Song For The Terminal" --- -Day 4: Let the music play! The challenge is stream music from the terminal. Easy. I moved to self-hosting my music by +# Day 4: Let the music play! +The challenge is stream music from the terminal. Easy. I moved to self-hosting my music by using a server [navidrome](https://www.navidrome.org). I have been happy with this solution for a long time. I have a [an android client](https://f-droid.org/en/packages/github.daneren2005.dsub) which caches locally so I can listen on the go without killing my cell bill. diff --git a/content/post/2025/06/tui-challenge:-day-5.md b/content/post/2025/06/tui-challenge:-day-5.md new file mode 100644 index 00000000..ee9db8fd --- /dev/null +++ b/content/post/2025/06/tui-challenge:-day-5.md @@ -0,0 +1,35 @@ +--- +date: "2025-06-12T04:00:00-07:00" +title: "TUI Challenge: Day 5" +tags: ["cli","tui"] +categories: ["personal","sa"] +#image: "" +series: ["tuichallenge"] +summary: "A Song For The Terminal" +--- + +# Day 5: File management. +'Wait!' you say 'You live at the terminal, what is wrong with *ls*, *cp*, or *mv*?' Well, most +of the time, that is fine, but there are times when I need to rename a bunch of files (cleaning up my MP3 collection) or +quickly review some source files. In those cases, what do I use? + +## vifm +[vifm](https://github.com/vifm/vifm) is a 'file manager with curses interface, which provides Vim-like environment for +managing objects within file systems, extended with some useful ideas from mutt.' When you start it up, you are great +with a split window with directory listing on both side. Using the normal vi keys moving around. You can select +multiple files, and then do things like mass rename or move the file to the other pane. Very quick and easy. I have +used this to bulk rename mp3s in a directory to my new naming standard. I could write a script, but I have messed that +up in the past, and part of why I need this type of tool to clean up. + +## ranger +[ranger](https://github.com/ranger/ranger) is a 'VIM-inspired filemanager for the console'. This is a tri-pane +arrangement Contents of the parent directory, current directory, details of what you are looking at. This last part is +the useful part. If you have selected a directory, it will show the contents of the directory. If you are looking at a +text file, it will show the contents of the file. The lets you review many files without using a pager or an editor to +review the contents. + +## Daily totals +Score time! [Yesterday](/post/2025/06/tui-challenge-day-4/) left us with 105 points. On the score. Using a tui +filemanager, 10 points. 5 points for the bulk renaming. I have done any scripting with these type of tools, so no more +points there. Total today, 15 points, and a grand running total is now 120. +