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

Selection sometimes wrong #3

Open
bitboxer opened this issue Apr 7, 2010 · 4 comments
Open

Selection sometimes wrong #3

bitboxer opened this issue Apr 7, 2010 · 4 comments

Comments

@bitboxer
Copy link

bitboxer commented Apr 7, 2010

I can't reproduce it reliably, but sometimes the selection of the search text is not correct when the file is already opened.

@protocool
Copy link
Owner

Hey.

It's not an intermittent problem - it's easily reproducible and the behavior is on purpose.

Basically you've got unsaved changes to that file and ack is reporting a match on a given line number and character range in the saved version of the file.

Ack tells me the matching range, I tell TextMate to select the matching range. But if the matching text has moved, there's not a lot I can do :-)

The "on purpose" part is that AckMate does not (as has been requested) automatically save your files before running ack - the reason being 'saving' is a potentially destructive action and should never be a side-effect of 'searching'.

Hope this helps,
Trev

@bitboxer
Copy link
Author

bitboxer commented Apr 7, 2010

But that confuses the hell out of me. And I am not alone in this as you mention that other people had that issues, as well.

What about saving the files temporarily in /tmp or can you get the content of the file in the editor and grep that instead of the saved file on the disk?

Or at least explain this somehow in the find-view.

@protocool
Copy link
Owner

I can certainly see that some people would appreciate the behaviour you're describing and (of course) I'd be willing to look at any patches that achieve that result.

I don't have plans to tackle the issue myself though.

Regards, Trev

@bitboxer
Copy link
Author

bitboxer commented Apr 7, 2010

Sadly I am not a Objective C Coder. But could you reopen this ticket or create a new one that explains this and asks for help? Maybee someone else will read it and try to create a patch for this.

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

No branches or pull requests

2 participants