Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8315483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:08:28+00:00 2026-06-08T21:08:28+00:00

I am just looking for an example ( the correct command to fire in

  • 0

I am just looking for an example ( the correct command to fire in the advance search at github ) about searching a word inside a folder of a particular repository. I guess this will involve the “path:” option but not sure how to use it

As an example I need to search for a function name “clean” or a test case for “clean” or similar function inside the jquery test suite at the following location –
https://github.com/jquery/jquery/tree/master/test

I understand there are some filters like repo: and path: provided by github but not sure how to use them.

Also I am not satisfied with an answer posted for a similar question at –
Search a github repository for the file defining a given function

I understand I can fork it to my local machine and do a search there but I don’t want to download the whole repository simply to search it. I just need to search it online at the github site itself.

Thanks in advance !!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:08:29+00:00Added an answer on June 8, 2026 at 9:08 pm

    I get 41 result with this query.

    The key is to specify the user/reponame, not the the reponame:

    repo:hadley/ggplot2
    

    Combined with wildcard for the path argument, I select only one argument with this query:

    repo:hadley/ggplot2 facet_wrap path:inst/*.r
    

    So, for path, the key is to add a wildcard (which doesn’t seem to be documented anywhere).
    path:inst/ alone won’t work. path:* or path:*.r will.


    From the comments:

    I need to find "beforeSend" entry which is in this file – "jquery / test / unit / ajax.js" at github.com/jquery/jquery/blob/master/test/unit/ajax.js but when I fire repo:jeresig/jquery beforeSend path:jquery/test/unit*.js in the advance search I don’t get any results.
    I am also confused which user should I use as jquery has many contributors like John Resig, timmywil

    In this case (2012):

    • the repo is jquery/jquery (no need for a username here)
    • the path: directive to use must not repeat the repo name: so, path:test/unit*.js, not path:jquery/test/unit*.js
         repo:jquery/jquery beforeSend path:test/unit*.js
    

    will work, and provide 4 results within JQuery Code.

    Update 2022:

    The query would be:

         repo:jquery/jquery beforeSend path:test extension:*js type=Code&ref=advsearch
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just looking at this example from Deitel : #include <stdio.h> struct card
I've searched this site and the web and just looking for a simple example
Looking around the docs I cannot see a correct way to go about this.
Basically just looking to see if a particular txt file exists on the server,
I'm kinda new to Observables so I'm just looking for an example that will
Just looking for a good PHP Image Library, I want to display images with
Just looking on resources that break down how frames per second work. I know
I just looking how to use LINQ for grouping a list. Class Item Public
Basically just looking to see if you can capture an image from the webcam
I was just looking at the MySql database created by drupal after I installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.