Best GNU Find Replacement

I'm looking for a better find. The reason is that the find user interface is unintuitive to me (in particular, the pruning / -print style) and difficult to wrap in a function due to strict...

Fastest way to index large sorted hash file

I am building a file-based index for the sorted haveibeenpwned passwords text file and it got me wondering what's the fastest way to do this? I figured a good way to build a quickly grep-able...

Ripgrep Missing Character Class + Repetitions

Why do these match: echo 'CCAGCTACTCGGGAGGCTGAGGCTGGAGGATCGCTTGAGTCCAGGAGTTC' | grep -E 'CCAGCTACTCGGGAGGCTGAGGCTGGAGGATCGCTTGAGTCCAGGAG[ATCG]{2}C' echo...

grep or ripgrep: How to find only files that match multiple patterns (not only on the same line)?

I'm searching for a fast method to find all files in a folder which contain 2 or more patterns grep -l -e foo -e bar ./* or rg -l -e foo -e bar show all files containing 'foo' AND 'bar' in the...

how to exclude file name from fzf filtering after ripgrep search results?

I use a convenience package fzf.vim to integrate fzf with vim. The file search works perfect and has completely replaced CtrlP plugin, but the functionality to grep files has unfortunate...

How does one check if conda develop installed my project/packages?

How do I see the packages that I've installed in development mode? I tried conda list but it didn't show anything familiar. I ran conda develop . and it seems it installed...

How can I remove lines containing a match found with Ripgrep?

I am using rg (or alternatively ag) to search for occurrences of a string in a folder with many files, like this: $ rg "cat" lolo 3:cat lala 2:cat Now I would like to get rid of these...

How do I list all of the packages I've installed globally with cargo install?

I've installed several CLI tools using cargo install (for instance, ripgrep). How do I see a list of all the crates I've downloaded using cargo install? Sort of like apt list --installed but for cargo?

.gitignore node_modules/ not working for fd and ripgrep

I'm trying to setup fzf.vim for vim on windows 10. You can use an alternative find command like ripgrep or fd which is supposed to respect .gitignore. My .gitignore file has this line, which is...

Finding file by fuzzy searching name and content with fzf

problem I need to fuzzy search a directory of textfiles, where the contents of the files is searched too. I am currently using ripgrep and fzf to do this, the problem is that each line of each...

Visual Studio Code updating woes

I've been having trouble when updating Visual Studio Code. Whenever I try to update there are files in the resource directory that are locked and block the installation. The installation is not...

How do I fuzzy find all files containing specific text using ripgrep and fzf and open it VSCode

I have the following command to fuzzy find files in the command line and to open the selected file in VSCode.: fzf --print0 -e | xargs -0 -r code Now I want to be able to search also file...

How to get fzf.vim ignore node_modules and .git folders?

I have fzf setup in vim with barely any customisation: " fzf and ripgrep settings set rtp+=/usr/local/opt/fzf let g:fzf_action = { \ 'ctrl-t': 'tab split', \ 'ctrl-i': 'split', \...

emacs visual highlight to rg (ripgrep)

I'm almost through adding features from spacemacs to a hand rolled emacs config, but can't figure out how to replicate spacemacs feature of highlighting a term to search for in the page (i've...

Update python on anaconda

My current python version is : When I search for available python using the code: conda search python Below is the output: I want to update my python to the latest version. I use the...

E492: Not an editor command: Pluginstall

so im trying to install some plugins for vim but some errors pop up "E492: Not an editor command: Pluginstall" i downloaded Vundle and i think i entered other thing correctly syntax on set...

Error detected while processing function vundle#installer#new

i dont know why this dont work, source % works fine but when i type :PluginInstall the error pop up "Error detected while processing function vundle#installer#new" and this too "No bundles were...

How can I read a non-UTF8 file line by line in Rust

I'm trying to read a file one line at a time in Rust, and started by following the advice in this question: use std::error::Error; use std::fs::File; use std::io::{BufRead, BufReader}; fn main()...

Ripgrep to only exclude a file in the root of the folder

If I have my folder like this: dir: ├── 1.index1.html ├── 2.index2.html ├── 3.index3.html ├── a │ ├── 1.index1.html │ How can I...

Importing the numpy C-extensions failed for embedded Python code

I seem to have a problem importing numpy only when trying to run my C++ code with embedded Python. The following code is just a dummy code that captures the problem. Python: from __future__ import...

How to create Ctrl+f and ctrl+shift+f in vim?

I am learning vim recently as i have to use vim in some restricted machines. As i am a vscode user, I would like to find ctrl+f and ctrl+shift+f equivalent to do string search Ctrl+f will search...

Is it possible to display result of Rg into quick fix window?

When i am searching :Rg <string> , it is opening the result in FZF buffer. Often the filenames are not displayed fully in it. Also the once escaped the results are gone. I have to do research if...

Hightlight line number with bat at fzf preview

I have a alias which when you pass a parameter will look like this rg --trim --no-heading test_based_image $HOME/ -n | fzf --color='preview-fg:110' --preview="cut -d":" -f1 <<< {} | xargs bat...

Many rg commands started by vscode that consume 99% of CPUs

I'm working inside a very big github repo, say its structure is like project-root ├── project-1 │   ├── subproject-a │   └── subproject-others └── project-2 ...

Using Ripgrep with flags in fzf.vim

I am using function below to search content in files with ripgrep using fzf in vim function! RipgrepFzf(query, fullscreen) let command_fmt = 'rg --column --line-number --no-heading...

It seems that scikit-learn has not been built correctly

I have been using Jupyter Notebook for my machine learning project. Before scikit-learn was working fine but eventually I installed pip install imblearn and pip install -U imbalanced-learn after...

Finding the distinct directory names using grep or rg

I am new to Linux commands and I am trying to search for a word that say "apple" recursively in a directory and all the directory names that contain the word. I am using ripgrep(rg) similar to...

How do I install the Rust crate in3?

When I run a program that uses this in3-rs crate I get an error. I expect it to be installed because I followed the directions here: https://crates.io/crates/in3 I installed the Requirements...

what is the command to update all my rust packages

I installed several rust applications using: cargo install fd-find sd ripgrep rga bat tealdeer exa git-delta du-dust Is there any command like sudo apt update && sudo apt upgrade which I can use...

Chronic ripgrep / vim Plugin Error on Load: "-complete Used Without -nargs"?

I recently added ripgrep to my list of vim plugins and, immediately after installation, I began receiving this error message whenever I loaded up vim: Error detected while processing...