Text editor API needs a 'select_end_line_index' attribute to expose selection to the user. #66317
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#66317
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
As reported in this BA thread
There's one attribute missing to be able to perform actions relative to a multiline selection.
Here is the attibute list :
Maybe I missed a way to get the selection directly ? (so we can count the '\n' as a workaround without using 'bpy.ops.text.copy()' that overwrite clipboard)
PS : I did not know who to assign so I chose you Jacques since you wrote code-autocomplete and should be familliar with text editor, I'm sorry if you're not the right guy to bother.
Added subscribers: @Pullup, @antoniov
Added subscriber: @dfelinto
I have an old addon (which is outdated) that was handling text selection with no problems:
https://developer.blender.org/diffusion/BAC/browse/master/text_editor_hastebin.py
Changed status from 'Open' to: 'Resolved'
Nice !
I didn't thought to compare line object itself against select_end_line.
Someone also gave me this solution on BA thread "Get / set character and line coordinate of the selection in the text editor" .
Thanks for the digging.
Added subscriber: @zgorg
This comment was removed by @zgorg