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

Navigate back after search and replace #741

Open
rillig opened this issue Mar 4, 2022 · 5 comments
Open

Navigate back after search and replace #741

rillig opened this issue Mar 4, 2022 · 5 comments

Comments

@rillig
Copy link

rillig commented Mar 4, 2022

When using Poedit, I'm always afraid of using the search and replace, even if it would be useful. That's because I'm losing the editing position. There are no bookmarks anywhere that I could use, and there is no "Continue where you were before" button in the Replace dialog.

Typically, when I want to use the search and replace function, I want to interrupt my main task of translating the whole file, but only for a brief moment, then I want to return.

I think this is a typical workflow, not only for me but also for other Poedit users, therefore I think supporting it would benefit several translators.

@vslavik
Copy link
Owner

vslavik commented Mar 25, 2022

I understand the problem (I think; although I'm not sure if this applies to just Replace or Find as well). But I'm not sure how to do UI for this. ..

@librafrog

This comment was marked as off-topic.

@rillig
Copy link
Author

rillig commented Apr 5, 2023

It applies to both Find and Replace.

Another interpretation of that idea is to have a "main editing" window, and when I discover an interesting word while translating, I can open a second editing window. In that window, I can filter the messages like with grep, to see only those that contain the interesting word. The second window contains an editor as well, so that I can fix typos or small wording changes. When I no longer need that second window, I can close it.

As long as a single message is not edited in several windows at the same time, this should be doable in terms of UI, as there are no editing conflicts. There would have to be a notification mechanism though, when a message has been modified in one window and is displayed in another window. Also, the filtering needs to be updated in real time.

@vslavik
Copy link
Owner

vslavik commented Apr 6, 2023

I realize this is not quite what you're asking for (particularly the "small edits" bit), but note that you can use the Terminology tab for reference: searching there searches the current file for other uses of a word.

@vslavik
Copy link
Owner

vslavik commented Apr 6, 2023

JetBrains IDEs do something like you describe very well: the search window shows filtered results inline in what is a small editor usable for exactly the small edits you describe. At the same time, the window remains distinctly search-oriented and won't be confused with the primary editor.

Screen Shot 2023-04-06 at 19 09 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants