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

Bilara: find/replace UI #11

Closed
sujato opened this issue Jul 22, 2019 · 1 comment
Closed

Bilara: find/replace UI #11

sujato opened this issue Jul 22, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sujato
Copy link
Contributor

sujato commented Jul 22, 2019

User story

Jill wants to find stuff on Bilara. She also needs to do find/replace, sometimes over a large amount of cases.

This happens a lot when translating, as the segment matching is only useful at a segment scale. Checking terminology and so on requires constant searching, so a very fast and intuitive UI is required.

Feature description

Here i propose a rather radical approach to search, which stems from my experience using Pootle. Usually i would have a separate browser window open just for searching, and be constantly swapping windows. But what if we could build a cool window into the system?

Search is a persistent third column

Create a third column on the page just for search. It can be toggled. (narrow screens will need a different approach, but for now let's leave that.)

At the top of the column are two text fields: Find and Replace. Results are underneath.

Results are displayed in an infinite list that scrolls independently from the text columns.

Each result is linkified. Click and it opens the relevant sutta on the text columns. Same window. Go back using browser. (Sutta text display is not necessary for editing. It is just for checking context.)

Screenshot from 2019-04-17 17-27-41

Search features

  • Terms may be entered by writing, but in addition, highlighted terms in the text columns are automatically added to the Find field (especially handy for long Pali words). Focus is also automatic, so highlight + enter gives you results right away.
  • Also, there should be a simple way (either GUI or shortcut or both) to search for:
    • translated string
    • root string
    • any of the suggestions
  • By default match string, not whole word. Results should be inclusive.
  • Treat root and target as a single piece of text, i.e: "eva" + "hear" = "evam me sutam :: thus have I heard".
  • Find/replace must, however, match only exact string of translation.
  • Match caps by default for find/replace.
  • Present results using order of segment ID numbers (as in pootle).
  • Must have an "undo".
  • The scope is "all texts in your language" by default. Add a filter at some point.
  • Enhancements: (for future) alias diacriticals, match case, whole word, regex.

Shortcuts

Shortcuts are grouped with the main shortcuts:

#15

@sujato sujato added the enhancement New feature or request label Jul 22, 2019
@sujato sujato changed the title Bilara: find/replace U Bilara: find/replace UI Jul 22, 2019
@sujato sujato mentioned this issue Apr 14, 2020
6 tasks
@sujato
Copy link
Contributor Author

sujato commented Jun 11, 2020

This feature is implemented. Future features can be added in new issues.

@sujato sujato closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants