-
Notifications
You must be signed in to change notification settings - Fork 89
Searchwd #344 #353
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
base: master
Are you sure you want to change the base?
Searchwd #344 #353
Changes from 2 commits
017f507
fde0210
fa89ccf
ba66963
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,6 +83,7 @@ let s:backend_args_map = { | |
| " BuildCommand() | ||
| " | ||
| func! s:BuildCommand(args, for_shell) abort | ||
| let g:ctrlsf_pwd = getcwd() | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to verify the scope of the g:ctrlsf_pwd variable. I think this variable should remain constant whenever the ctrlsf command is invoked; therefore, it would be more appropriate to assign it within
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right. I have adapted the code and redone my testing. |
||
| let tokens = [] | ||
| let runner = ctrlsf#backend#Runner() | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change opens buffers using
file_path(often absolute) buts:OpenFileInWindow()still identifies existing targets with the originala:filevalue. When search results are relative (default), the first jump opens an absolute buffer name and subsequent jumps can no longer match that buffer bya:file, so CtrlSF may reopen/re-split the same file instead of reusing the current window. The regression is visible by jumping to the same match repeatedly after one search; path matching should use the same canonical form for lookup and open/edit.Useful? React with 👍 / 👎.