In text editor, tabbing/untabbing affects an excess line #37613

Closed
opened 2013-11-25 11:49:14 +01:00 by Konstantins Visnevskis · 12 comments

In text editor, when inserting tabs for multi-line selection, tab is added to last selected line even if there is no character selected on it.
Which is counter-intuitive, because every other action (delete, replace) works with selected lines only and breaks mnemonics of using every other text editor.

In text editor, when inserting tabs for multi-line selection, tab is added to last selected line even if there is no character selected on it. Which is counter-intuitive, because every other action (delete, replace) works with selected lines only and breaks mnemonics of using every other text editor.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @KonstantinsVisnevskis

Added subscriber: @KonstantinsVisnevskis

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Confirmed. Not only to the last line, but to all the empty or not lines

Confirmed. Not only to the last line, but to all the empty or not lines

Empty newlines should be affected if they are inside selection, otherwise such tabbing will break python indentation flow.
Last line of selection on the other hand, if has no selected characters, usually is viewed as not selected (for good reasons).

Empty newlines should be affected if they are inside selection, otherwise such tabbing will break python indentation flow. Last line of selection on the other hand, if has no selected characters, usually is viewed as not selected (for good reasons).

@kvig, not necessarily. I'm used to text editors that do not touch blank lines. Can you test the patch to see if it fixes it (and if it break or not python flow when there are blank lines inside the selection)

@kvig, not necessarily. I'm used to text editors that do not touch blank lines. Can you test the patch to see if it fixes it (and if it break or not python flow when there are blank lines inside the selection)

I'd be happy to test the patch if I'd know how to get a working version with it :)
You are right - non indented empty lines do not break Python flow. Still I'm sure most people would prefer to have those tabs in empty lines, not to have to put them manually when they decide to add code to that line. But that's a matter of preference rather than a bug, so I guess it's not for me to say :)

I'd be happy to test the patch if I'd know how to get a working version with it :) You are right - non indented empty lines do not break Python flow. Still I'm sure most people would prefer to have those tabs in empty lines, not to have to put them manually when they decide to add code to that line. But that's a matter of preference rather than a bug, so I guess it's not for me to say :)

@KonstantinsVisnevskis the instructions are in the patch itself, see the D42 link above.
The easy way of applying the patch is with : arc patch D42

@KonstantinsVisnevskis the instructions are in the patch itself, see the [D42](https://archive.blender.org/developer/D42) link above. The easy way of applying the patch is with : arc patch [D42](https://archive.blender.org/developer/D42)

This issue was referenced by blender/blender-addons-contrib@a03aec3178

This issue was referenced by blender/blender-addons-contrib@a03aec3178ecf17c06a684e8ebd495364d74d23f

This issue was referenced by a03aec3178

This issue was referenced by a03aec3178ecf17c06a684e8ebd495364d74d23f

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit a03aec3178.

Closed by commit a03aec3178.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#37613
No description provided.