moreutils
vidir
moreutils | vidir | |
---|---|---|
19 | 6 | |
2 | 182 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | about 1 year ago | |
Shell | Perl | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moreutils
-
Pipexec – Handling pipe of commands like a single command
I use mutlios and even I'm not that attached to it. The majority of my use is combined with process substitution, and could be replaced with common-ish tools like pee¹ or pipexec for more complex cases. The only occasion when I'm thankful for it is if I want to use a shell function as a target, but there are workarounds for that too.
As a noclobber user the footgun is largely hidden to me, but I feel its presence. multios without globbing support would be less useful, but would still work for most of my use cases. Scanning my shell history I see various cases of relying on zsh's ability to apply sorting and filtering to globs with multios' input redirection, but only a couple where I want that in output redirection.
Even with multios unset the behaviour is different between zsh and bash. For example, multios disables all the expansion, so zsh behaves like more like dash with ': >t{1,2}' by creating a file instead producing an error like bash does.
[FWIW, I google'd multiios to link the option in original comment. It really feels to me like it needs double-i, and I read the single i name the same way you do.]
---
I'd be one of those people whose desire for dgsh-like functionality wanes. If it was slight DSL that I could "upgrade" pipelines to I'd probably use it, but not enough to warrant working on it or switching other tooling to support it.
The end of result of this morning's pipeline was breaking my jobs up, and applying some judicious use of nq² to keep track of it. I'd follow your advice and move on to more specialist tools if the job grew significantly or if it became a regular occurrence.
¹ https://joeyh.name/code/moreutils/
² https://git.vuxu.org/nq/about/
- Show HN: Simple Script for Enhanced LLM Interaction in Vim
-
The shell and its crappy handling of whitespace
For filesystem operations like batch renames at least, I am usually happy with `vidir` (part of `moreutils`: https://joeyh.name/code/moreutils/).
`vidir [path]` will open an editor with the given directory as buffer contents.
-
Show HN: LineSelect, shell utility to interactively select lines in a pipeline
See also: "vipe" from the excellent "moreutils" package: https://joeyh.name/code/moreutils/
There are some other gems in this package. The ones I find myself using regularly are 'ts' and 'sponge' but I'm sure the useful subset depends a lot on the kind of work you are doing
-
Vim Keybindings Everywhere – The Ultimate List
Joey Hess' excellent moreutils¹ comes with vipe which is a generalised solution for these types of tasks. It allows you to run whatever $EDITOR you've configured mid-pipe, making it possible to work your changes up in an interactive editor session. Useful for those of us not smart enough to write up our changes as a series of -c arguments ;)
(It fixes the vim issue by virtue of using a temporary file to do the magic)
¹ https://joeyh.name/code/moreutils/
-
vimv has not only changed my workflow, it changed my life
Sounds like `vidir` from moreutils.
-
What "nice-to-have" CLI tools do you know?
vidir and a few others from moreutils
-
rtl_fm - record and also output audio on a speaker (Raspberry pi?)
Use pee (yes, I know) from moreutils. Something like:
-
How to re-order the strings of a filename in bulk?
I would use vidir from moreutils. Then you can do any edits and play around with any regexes you want!
-
Should i learn file management using terminal?
For bulk file renaming, I recommend vidir from moreutils - it lets you rename everything in a directory with your $EDITOR (vim being the default).
vidir
-
The Gems of Moreutils
I just learned about vidir [1]. Emacs Dired [2] can rename & delete files by editing the buffer directly, and let's say I was thrilled when I saw someone replicated that behavior as a general Unix tool.
[1] https://github.com/trapd00r/vidir
[2] https://www.gnu.org/software/emacs/manual/html_node/emacs/Wd...
-
vimv has not only changed my workflow, it changed my life
I'm sticking with (and would highly recommend) vidir over this.
-
New file explorer: oil.nvim, a modern take on vim-vinegar/vidir
If this sounds familiar, that's because it was not my idea! Almost one year ago exactly, dirbuf.nvim was announced and it blew my mind. From what I can tell, the idea for dirbuf actually came from an earlier plugin called vidir, but this was the first time I'd seen it and, to be fair, its execution is fantastic.
- What's the best command in Linux or windows that you have used and it turned out to be really awesome and helpful .
-
Help Bulk Renaming Files
vidir for the win!
-
dirbuf.nvim: A file manager which let's you edit your filesystem like you edit text
You navigate Dirbuf with your cursor, pressing enter to open a file/directory. Editing in Dirbuf works like vidir where, when you edit a directory, you get a list of the files, directories, etc. in that directory and can edit them like text. Then when you save the buffer, all the files and directories you added get created, everything you copied gets copied, everything you renamed gets renamed, and everything you deleted gets deleted.
What are some alternatives?
pipe-rename - Rename your files using your favorite text editor
vim-filebeagle - A VINE-spired (Vim Is Not Emacs) file system explorer.
atomicxt
dirbuf.nvim - A file manager for Neovim which lets you edit your filesystem like you edit text
map.xplr - Visually inspect and interactively execute batch commands using xplr
vimv - Batch-rename files using Vim
lineselect - Shell utility to interactively select lines from stdin
mimeopen-gui - Graphical "Open with..." application chooser for Freedesktops
fstring - Make searching for text strings easier on Linux :)
oil.nvim - Neovim file explorer: edit your filesystem like a buffer
evenmoreutils - A collection of command line tools to extend the shell environment.
lf.vim - Lf integration in vim and neovim