Questions tagged [ag]

The Silver Searcher, better known as Ag is a tool similar to ack.

The Silver Searcher, better known as Ag is an open-source tool similar to created and maintained by Geoff Greer.

115 questions
0
votes
0 answers

Uncaught SyntaxError: Identifier 'myGridOptions' has already been declared

const myGridOptions = { columnDefs: [ { field: 'id', headerName: 'ID', minWidth: 50}, { field: 'text', headerName: 'Title', minWidth: 400 }, ], pagination: true, paginationPageSize: 25, defaultColDef: { flex: 1, …
0
votes
0 answers

Refresh the tooltipField of ag-grid after change data on CellRendererAngularComp

Refresh the tooltipField of ag-grid after change data on CellRendererAngularComp in Angular 13. API is serving data in English and after data comes to Ag-Grid we convert data to specific language from resource files. Data is successfully update via…
0
votes
1 answer

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 later vanishes. I tried to increase the…
Daniel Stephen
  • 539
  • 1
  • 5
  • 10
0
votes
0 answers

fzf: score certain filetypes higher

I have something like the following command: ag -g "" | fzf So, the Silver Searcher gives me a list of files and fzf filters them. I have .java and .ts files (among others) in the project, but most of the time I only want to jump to the .ts files.…
Adam
  • 63
  • 5
0
votes
2 answers

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 provide a more specific exception object, i.e. try: …
nalzok
  • 14,965
  • 21
  • 72
  • 139
0
votes
1 answer

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 related part of this theme from the original JS…
user12799634
0
votes
1 answer

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 ICellRenderer interface and try to implement the inteface…
Ismar
  • 11
0
votes
1 answer

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, but there are no files that contain…
Purplejacket
  • 1,808
  • 2
  • 25
  • 43
0
votes
1 answer

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 type :Ag, it will complain with the following…
Kurt Bourbaki
  • 11,984
  • 6
  • 35
  • 53
0
votes
1 answer

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" But i still see the file names(sampledata1.txt, sampledata2.txt)…
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54
0
votes
4 answers

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}] *:Ack* Search recursively in…
Flov
  • 1,527
  • 16
  • 25
0
votes
1 answer

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
0
votes
1 answer

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

:CtrlPBuffer and :CtrlPMRU work normally, but when I use :CtrlP, the listing is always empty, and if I type -- inside the prompt, it matches these lines: > --ackmate Print results in AckMate-parseable…
Saxt
  • 27
  • 5
0
votes
1 answer

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/lvl1/lvl2. I want to search for a word starting…
doctopus
  • 5,349
  • 8
  • 53
  • 105
0
votes
2 answers

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 control the results sort by files modified date or name…
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54