-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Editing with context #372
Comments
I'm not sure your issue is fixed by a following patch diff --git a/helm-ag.el b/helm-ag.el
index 8952c04..fd059df 100644
--- a/helm-ag.el
+++ b/helm-ag.el
@@ -613,7 +613,8 @@ Default behaviour shows finish and result in mode-line."
;; $3: match body
;; $4: file attributes part(filename, line, column)
(cond ((helm-ag--vimgrep-option)
- "^\\(?4:\\(?1:[^:]+\\):\\(?2:[1-9][0-9]*\\):[^:]+:\\)\\(?3:.*\\)$")
+ ;; context mode in --vimgrep flag like, filename-line-content
+ "^\\(?4:\\(?:\\(?1:[^\n:]+\\):\\(?2:[1-9][0-9]*\\):\\([^:\n]+:\\)\\|\\(?1:.+\\)-\\(?2:[1-9][0-9]*\\)-\\)\\)\\(?3:[^\n]*\\)$")
(helm-ag--search-this-file-p
"^\\(?4:\\(?2:[1-9][0-9]*\\)[:-]\\)\\(?3:.*\\)$")
(t |
Sorry for the delay. Have tried the patch and the results are still read only, other than the match. |
@mcg Could you show me your configuration and |
Switched back to
|
Hmm, ag output is strange when both context option and |
This was added back in #214, but I doesn't seem to work now.
Actual behavior
Only able to edit matched line.
Expected behavior
Able to edit matched line and context lines
Steps to reproduce
Issue
helm-do-project-root
within a valid project directory.Add a context switch to the search "-A/-B/-C".
Open search results in edit mode.
Only matched lines are editable, context is readonly.
The text was updated successfully, but these errors were encountered: