Skip to content

IDLE: document search (find) and replace better #89362

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

Open
terryjreedy opened this issue Sep 14, 2021 · 1 comment
Open

IDLE: document search (find) and replace better #89362

terryjreedy opened this issue Sep 14, 2021 · 1 comment
Assignees
Labels
3.11 only security fixes docs Documentation in the Doc dir topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

BPO 45199
Nosy @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = None
created_at = <Date 2021-09-14.22:13:34.128>
labels = ['expert-IDLE', 'type-feature', '3.11']
title = 'IDLE: document search (find) and replace better'
updated_at = <Date 2021-09-14.22:13:34.128>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2021-09-14.22:13:34.128>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = False
closed_date = None
closer = None
components = ['IDLE']
creation = <Date 2021-09-14.22:13:34.128>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 45199
keywords = []
message_count = 1.0
messages = ['401801']
nosy_count = 1.0
nosy_names = ['terry.reedy']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue45199'
versions = ['Python 3.11']

@terryjreedy
Copy link
Member Author

The doc currently just says that the Search, File Search, and Search&Replace dialogs exist for the corresponding menu entries.
Add a short section in "Editing and navigation" to say more.

  1. Any selection becomes search target, except that S&R is buggy.
  2. Search is only within lines. .* and \n do not match \n even with RE.
  3. [x]RE uses Python re module, not tcl re. It applies to replace also. So if target RE has capture groups, \1 (and \gname? test) in replacement works.(match.expand(repl))
  4. Refer to re chapter and RegularExpression HOWTO.

@terryjreedy terryjreedy added the 3.11 only security fixes label Sep 14, 2021
@terryjreedy terryjreedy self-assigned this Sep 14, 2021
@terryjreedy terryjreedy added topic-IDLE type-feature A feature request or enhancement 3.11 only security fixes labels Sep 14, 2021
@terryjreedy terryjreedy self-assigned this Sep 14, 2021
@terryjreedy terryjreedy added topic-IDLE type-feature A feature request or enhancement labels Sep 14, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@erlend-aasland erlend-aasland added the docs Documentation in the Doc dir label Jul 27, 2022
terryjreedy added a commit to terryjreedy/cpython that referenced this issue Aug 5, 2022
Some menu items were misplaced or missing caps.
Add short paragraph on Search.
Update for help.html include previous patch.
terryjreedy added a commit to terryjreedy/cpython that referenced this issue Aug 5, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
terryjreedy added a commit that referenced this issue Aug 5, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 5, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
(cherry picked from commit 834064c)

Co-authored-by: Terry Jan Reedy <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 5, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
(cherry picked from commit 834064c)

Co-authored-by: Terry Jan Reedy <[email protected]>
miss-islington added a commit that referenced this issue Aug 5, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
(cherry picked from commit 834064c)

Co-authored-by: Terry Jan Reedy <[email protected]>
@terryjreedy terryjreedy moved this to In Progress in IDLE Issues Aug 6, 2022
ambv pushed a commit that referenced this issue Aug 6, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
(cherry picked from commit 834064c)

Co-authored-by: Terry Jan Reedy <[email protected]>
iritkatriel pushed a commit to iritkatriel/cpython that referenced this issue Aug 11, 2022
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes docs Documentation in the Doc dir topic-IDLE type-feature A feature request or enhancement
Projects
Status: In Progress
Development

No branches or pull requests

2 participants