Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Read values into a List<string> or DataTable from a Agnostic Grid using Selenium C#

I'm trying to read an Agnostic Grid on a web page using selenium c# and want to store the Text based on the column name. I'm not that great fan of DataTable so I preferred List over DT. Problem: The ...
StackUseR's user avatar
  • 958
0 votes
1 answer
72 views

Ignoring folders in The Silver Searcher `ag`

I have a structure like this: folder_a/ ├── a.txt └── folder_b/ └── b.txt where both text files contain 1234 string. Being in folder_a how to use ag from terminal to find only a.txt? I tried: ag ...
alex's user avatar
  • 11.3k
0 votes
0 answers
52 views

Are the datasets is all the same in the huggingface?

huggingface_hub.utils._errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: https://hf-mirror.com/api/datasets/ag_news/ag_news.py When I am training my Model, there exists a problem like ...
ZesenLiu's user avatar
1 vote
1 answer
56 views

ag/the_silver_searcher How to add new custom file type?

From what I see the list of languages is hardcoded in the src/lang.c Is there a workaround to add some custom languages besides those listed in the C file?
Nikita Fedyashev's user avatar
0 votes
0 answers
54 views

AG Grid Filtering issue

So we have applied floating filter in second column of ag grid in react by applying the properties: floatingFilter:true, filter:"agMultiColumnFilter", Now while we are searching or filtering ...
komal varshney's user avatar
0 votes
0 answers
39 views

Vim with Ack and "Silver searcher" - can not open file from result panel

I am on Windows and use git-bash. I have vim (the default one that comes with git-bash) with several plugins installed via vim-plug. When I use :Ag ... to search through the files in a project - I get ...
pesho hristov's user avatar
0 votes
0 answers
21 views

After adding to Always On Availability group the DB is at restoring state at secondary server

I have some DB at primary server, and when I add it to AG it appears at secondary server at Restoring state. Why it happens and how I can solve it? Thank you.
Maria's user avatar
  • 13
0 votes
0 answers
89 views

Using rg to search for two pattern within thousand of txt files

I have thousands of .txt files I want to search for two certain keywords/pattern. I use this command for one pattern: rg -t txt -i 'group of words' How can I use silversearcher searching for two ...
Til Hund's user avatar
  • 1,663
0 votes
0 answers
248 views

Publish a message to AWS SNS topic on on_failure_callback from DAG

I have a DAG that I have deployed on astro.In the DAG I have on_failure_callback as the default parameter on the dag level and I am calling a method that publishes to the aws sns topic when the dag ...
shafia askari's user avatar
2 votes
0 answers
703 views

Add line breaks to Dash AG grid custom tooltip

I added a custom tooltip to my Dash AG grid according to these instructions: https://dash.plotly.com/dash-ag-grid/tooltips. Now, the cell that contains my tooltip data may have one or multiple line ...
Jordi's user avatar
  • 351
1 vote
1 answer
287 views

How do I let silver searcher ignore certain sub-directories?

How do I let silver searcher ignore certian sub-directories, in my case I want ag to search md format only and ignore all the node_modules directories, I tried what here silver searcher ignore ...
Qiulang's user avatar
  • 12k
2 votes
0 answers
403 views

ag (the silver searcher) does not automatically search recursively

When performing ag pattern it only searches in the files in the current directory, even when providing --depth NUM>1. Performing ag pattern ./** looks in all subdirectories as well. I am currently ...
hilbor's user avatar
  • 55
-2 votes
1 answer
126 views

Regex for optional parts of string

How can I match all four variants shown below with one regular expression? ABC ABC_DEF ABC_DEF_GHI ABC_DEF_GHI_JKL ABC, DEF, GHI, JKL do not represent number of characters. I've tried something like ...
Murakami's user avatar
  • 3,700
0 votes
1 answer
187 views

Retain the change detection in ag grid react typescript

In AG Grid, when I try the change detection feature in AG grid. It is working fine. However I want to know, Is there any way to retain the changes. The numbers or changes are showing for 5 seconds and ...
Daniel Stephen's user avatar
2 votes
1 answer
774 views

ag (the_silver_searcher) definition of hidden dir and including hidden dirs in search path

The man does not define 'hidden' and 'ignored'. This probably means the 'hidden' is a file starting with a dot and 'ignored' is an entry in related ignore lists (.gitignore and .ignore). However it is ...
user3156459's user avatar
  • 1,183
0 votes
2 answers
60 views

Find-and-replace only when the pattern is following by something

I have a lot of Jupyter notebooks that contain the following pattern try: import tensorflow as tf except: %pip install tensorflow import tensorflow as tf According to pylint, I should ...
nalzok's user avatar
  • 15.9k
1 vote
1 answer
779 views

Silver Searcher: How can I only return results in folders matching a pattern?

My file structure is like this: A G (want to ignore) H (want to ignore) X (contains files I want to search) B G (want to ignore) H (want to ignore) X (contains files I want to search)...
veeTrain's user avatar
  • 2,915
0 votes
1 answer
113 views

Creating images with Ajax

I'm using a Bootstrap theme and I wanted the image gallery on the theme's image display page to load via AJAX. Photos come as JSON with AJAX but I couldn't get them to show on the page. The gallery ...
user avatar
3 votes
1 answer
1k views

Ag / Grep Exact Match Only Search

I am having an issue with using Ag (The Silver Searcher)... In the docs it says to use -Q for exact match, but I don't understand why it does not work for my purposes. If I type something like ag -Q ...
Lushmoney's user avatar
  • 462
0 votes
1 answer
1k views

Ag Grid Cell Render property does not exist

I am trying to implement myown cell renderer following this example https://www.ag-grid.com/javascript-data-grid/cell-rendering/ , but in typescript . When I declare a class which implements ...
Ismar's user avatar
  • 11
4 votes
1 answer
194 views

How can I use the files found by one ag search as the domain for a second ag search?

Suppose I do ag -l foo. That gets me a list of files. How can I use ag a second time to search within just those files?
joachim's user avatar
  • 30.3k
1 vote
1 answer
2k views

How to know which Column is selected for Sort in Ag-Grid in Angular and is Acending or Decending

How to know which Column is selected for Sort in Ag-Grid in Angular and is Acending or Decending Html <ag-grid-angular [enableSorting]="true" [rowData]="rowData" [...
Mehmood Developer's user avatar
1 vote
2 answers
1k views

FZF - Search the target folder

I've been using fzf for a while now and finding it really great, however there is one thing I want it to do but I don't think I'm Googling the correct words. I use it with neovim on a zsh terminal and ...
clueless's user avatar
  • 839
0 votes
1 answer
1k views

How to get ripgrep to tell me which expressions from a list have no matches on the filesystem

For instance, say I have the list of strings that I want to search for: alfa bravo charlie delta nebuchadnezzar bartholomew and in my repo there are files that contain alfa, bravo, charlie and delta, ...
Purplejacket's user avatar
  • 2,008
0 votes
1 answer
2k views

Argument required error when using Ag with vim

I'd like to just use the :Ag command to enter the interactive ag shell (as with :Files) and then start typing my search term. However, vim won't allow me to open the ag interactive interface. If I ...
Kurt Bourbaki's user avatar
2 votes
3 answers
133 views

Recursively finding files in list of directories

How do I recursively count files in a list of Linux directories? Example: /dog/ /a.txt /b.txt /c.ipynb /cat/ /d.txt /e.pdf /f.png /g.txt /owl/ /h.txt I want following output: 5 .txt ...
ThinkGeek's user avatar
  • 5,067
0 votes
1 answer
1k views

ag grep tool - How to print only the log lines without file name/path in the output?

I am trying to grep the folder that has lot of files using following ag command, and print results with out file name/path. ag --print-long-lines "test|temp" | grep -Ei "error|fail&...
Lava Sangeetham's user avatar
3 votes
3 answers
3k views

How to search for text in a specific file type/extension in vim with FZF and Ag?

I have recently started using vim and i have been playing around with it for sometime now. i use FZF with Ag to get searching files and searching in files done. but i am not able to search in ...
hannad rehman's user avatar
3 votes
2 answers
7k views

ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?

# in html xyz.commponent.tz <tabset #staticTabs> <tab heading="User"> <ag-grid-angular style="width: 100%; height: 500px;" class="ag-theme-material" [...
avi's user avatar
  • 41
1 vote
1 answer
514 views

ag grid angular 9 model problem .. it doesn't recognize in app model

I'm using angular 9. i created a new project .. i tried to import Ag-grid package .. but for some reason it doesn't recognize ag-grid .. i installed it properly - because i can see it in the import ...
amikam bs 's user avatar
4 votes
2 answers
6k views

How can I exclude 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 matches. How ...
TTT's user avatar
  • 6,775
0 votes
4 answers
2k views

Vim Ack, Ag: Search in directory of file that you are editing in

I want to be able to search files that only reside in the directory of the file that I opened inside vim. The documentary of Ack says: :Ack[!] [options] {pattern n} [{directory}] ...
Flov's user avatar
  • 1,577
3 votes
1 answer
3k views

How to search with case sensitive with ag in MAC?

i want to search with case sensitive, seems "ag -i" should do the job. But when i run it in MAC, seems it's not the case. Anyone has same issues ?
user3552178's user avatar
  • 2,923
3 votes
2 answers
2k views

How to use ag aka the_silver_search to search for directories only?

I like to search for directories only, and the option ag --list-file-types is not helpful with that. The reason to stick to ag is the possibility to pick a file with --path-to-ignore containing ...
F. Röder's user avatar
0 votes
1 answer
340 views

Set Filter and Provided Filter on one column - Ag-Grid

Is there anyway to get agSetFilter and agTextFilter both on one column of the grid. e.g. I want below type of filters on one column TextFilter agTextFilter screenshot agSet Filter screenshot
Shubham Rastogi's user avatar
3 votes
3 answers
2k views

What is the best way to find all the files that do not have a match?

I have a large application and I need to find a list of files that do not contain an expression. I have been using The Silver Searcher but I am unsure how to get the opposite Example ag 'breadcrumbs'...
MZaragoza's user avatar
0 votes
1 answer
96 views

ctrlp only searching lines in ag.1.md file?

:CtrlPBuffer<CR><c-d> and :CtrlPMRU<CR><c-d> work normally, but when I use :CtrlP<CR><c-d>, the listing is always empty, and if I type -- inside the prompt, it ...
Saxt's user avatar
  • 27
7 votes
1 answer
4k views

zstd: error 70 : Write error : Broken pipe (cannot write decoded block)

I'm trying through Windows terminal to decompress a large number of compressed files with zstd v1.4.0 and then 'ag' search over : zstd -dc -r . | ag -z -i "term" It gives me the following error ...
titibouboul's user avatar
  • 1,358
11 votes
1 answer
22k views

Search through .zst text files

I have large zstd-compressed text files. How can I run fast search over them ? Can I use AG (The Silver Searcher) or something similar ? I've tried AG but it doesn't work, I have a "failed to ...
titibouboul's user avatar
  • 1,358
0 votes
1 answer
349 views

How to search from root of project using silver searcher in vim?

I have silver searcher set up in vim and would like to search from the root of a project directory without having to explicitly passing in the file path. For example, let's say I'm at /project_root/...
doctopus's user avatar
  • 5,627
2 votes
3 answers
473 views

Can ack/ag/grep print function name?

Is it possible to print the function or class name in which a keyword occurs when using ack or ag? This is something I have highly desired for quite some time. I think it would be quite tricky, as ...
shivams's user avatar
  • 983
13 votes
1 answer
6k views

ag: search exact string, not a pattern

My Problem I'm searching for Application(service) in my files using ag. Since ag treats strings as regular expression patterns, I have to escape the parens and use: ag 'Application\(service\)' This ...
Adam Matan's user avatar
  • 135k
2 votes
2 answers
284 views

How to escape a PCRE pattern with bash (ag)

Question How do I escape a regex (PCRE) to use in bash (with ag)? Attempts ag (?!.*rib)(?=.*dist)^(\w+)$ # -bash: !.*wib: event not found ag "(?!.*rib)(?=.*dist)^(\w+)$" # -bash: !.*wib: event not ...
Ashley Coolman's user avatar
1 vote
2 answers
91 views

sed - Search and replace always puts capture group at the end

I'm refactoring some code across lots of files, and am trying to do a search and replace using sed on a Mac. The goal is to go from this: fooActions: typeof fooActionCreators to this: fooActions: ...
Danny Delott's user avatar
  • 6,958
5 votes
0 answers
2k views

Multiline regex search with ag

I'd like to "AND" search text in spesific multiline range in a file by regex with ag(the_silver_searcher). But the regex pattern not work. Following regex pattern works well. ag --multiline -G "^.*\...
k23j4's user avatar
  • 733
2 votes
1 answer
109 views

SilverSearcher - Why can I use `--ignore=PATTERN` when documentation says `--ignore PATTERN` without a equal sign?

I had to ignore multiple directories, so I tried ag --hidden --ignore '.git' --ignore 'plugged' -g "" But this process of narrating --ignore each time I tried to ignore a directory felt needless. So,...
3N4N's user avatar
  • 589
0 votes
2 answers
2k views

Grep keyword in multiple files and sort results by files modified date or name

Trying to search a key word in multiple files. but search results are not sorted by files modified date or name ag grep tool: ag "keyword" grep tool: grep -r "keyword" is there any way we can ...
Lava Sangeetham's user avatar
0 votes
1 answer
138 views

Ag command on local against remote files

I installed ag on localhost and then localhost has access to remote host, I don't want to install ag on remote host, instead I'd like to use ag from localhost to run against files in remote host. I'm ...
raring-coffee20's user avatar
6 votes
1 answer
2k views

Find and replace text in files with the silver searcher and sed

Heck I just can't remember ... I recently had a cool way to use ag with sed to do find and replace. The gist was simple, something like: ag foo -l | ... magic here ... sed 's/foo/bar/g' That ...
Robert's user avatar
  • 1,626
6 votes
2 answers
8k views

Ignore node_modules with vim-fzf

I have defined a function to search for filename (<C-P>), and a string (<C-F>) from git root directory asynchronously with fzf.vim plugin (I also have Ag installed). However, I can not ...
Sang's user avatar
  • 4,377