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

Search/replace types replace text in both fields #234

Open
zsilet opened this issue Aug 21, 2024 · 7 comments
Open

Search/replace types replace text in both fields #234

zsilet opened this issue Aug 21, 2024 · 7 comments
Milestone

Comments

@zsilet
Copy link

zsilet commented Aug 21, 2024

This morning I tried to search/replace using COSMIC editor.

  1. I initially launched Search via Edit->Find menu, and typed the text I was looking for.
  2. Then Edit->Replace, realizing that the search in 1) did not give me a replace option (would be nice to have something right next to the search dialog, but that's not the issue.
  3. Once the search and replace text fieds were both visible, I clicked in the replace field and started typing.
  4. ISSUE - the text I type in the replace field also modifies the search field (see image below)
    image

The issue is easily reproducible, every time I use the mouse to move the cursor between search and replace, the cursor ends up active in both boxes.
If I tab between the boxes, the cursor moves correctly to the target.

Software versions:
sys_info_sw_2024-Aug-20-1709.txt

@WatchMkr WatchMkr added this to the alpha 2 milestone Aug 22, 2024
@git-f0x
Copy link
Contributor

git-f0x commented Aug 23, 2024

Similar to pop-os/cosmic-settings#452.

@zsilet
Copy link
Author

zsilet commented Aug 26, 2024

Note that the issue can also happen whereby one cursor is in the main editor area and the other cursor is in the Seach box.

@git-f0x
Copy link
Contributor

git-f0x commented Aug 26, 2024

That's probably related to #185.

@zsilet
Copy link
Author

zsilet commented Aug 26, 2024

In addition to the above, I found this odd, likely related scenario:

  • Attempting to copy/paste within the main window, with the Find window open will force the paste into the find window
  • The string that will be pasted seems to be from the clipboard history (not the most recent item that was copied).

Steps to reproduce:

  1. Create file with two lines, containing text1 and text2.
  2. Ctrl-C text1
  3. Ctrl-V text1 (verify that copy/paste works, line1 now contains text1text1)
  4. Ctrl-F, leave find term blank.
  5. Ctrl-C text2
  6. Ctrl-V, (problem) observe that text1 is pasted into the Find field (instead of text2 in the main window)

Agreed with @git-f0x that this issue is likely related to two others he mentioned.

@zsilet
Copy link
Author

zsilet commented Aug 26, 2024

It seems like all hotkeys end up going to the Find dialog, as I cannot save a file via Ctrl-S while the Find dialog is open either. Just realized that's likely the reason I've been having hit-n-miss time saving files in the editor.

@leb-kuchen
Copy link

Updating libcosmic should fix it.

@git-f0x
Copy link
Contributor

git-f0x commented Aug 27, 2024

It seems libcosmic is already updated for cosmic-edit, but the issue is still present.

@WatchMkr WatchMkr modified the milestones: alpha 2, alpha 4 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Alpha 3 Apps ToDo
Development

No branches or pull requests

4 participants