Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW Improves integration with dired-mode #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vitorqb
Copy link
Contributor

@vitorqb vitorqb commented Jul 31, 2019

  • Improves ag-dired-regexp to accept match-contents-p flag, under
    which the matching is performed at the file contents level instead
    of the file full path (using -l flag instead of -g).
  • Adds ag-contents-dired and ag-contents-dired-regexp as shortcuts
    for openning dired on files with contents matching some pattern.
  • Adds ag-on-marked-files and ag-regexp-on-marked-files as
    shortcuts to call ag on the files currently selected on a dired
    buffer.

@vitorqb
Copy link
Contributor Author

vitorqb commented Jul 31, 2019

Those are changes I made in my fork because I wanted to achieve something like this example, which I recorded with the changes of this PR. I'm making the PR just in case you are interested on those functionalities.

Thanks :)

@coveralls
Copy link

coveralls commented Jul 31, 2019

Coverage Status

Coverage decreased (-0.9%) to 17.869% when pulling 98a383a on vitorqb:feature/search-on-files-contents-twice into bd81d68 on Wilfred:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 17.993% when pulling 2eedcf8 on vitorqb:feature/search-on-files-contents-twice into bd81d68 on Wilfred:master.

@vitorqb vitorqb force-pushed the feature/search-on-files-contents-twice branch from 2eedcf8 to 98a383a Compare January 8, 2020 11:32
- Improves `ag-dired-regexp` to accept `match-contents-p` flag, under
  which the matching is performed at the file contents level instead
  of the file full path (using -l flag instead of f-g).
- Adds `ag-contents-dired` and `ag-contents-dired-regexp` as shortcuts
  for openning dired on files with contents matching some pattern.
- Adds `ag-on-marked-files` and `ag-regexp-on-marked-files` as
  shortcuts to call `ag` on the files currently selected for the dired
  buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants