Shift+Tab only works with new text #60234

Closed
opened 2019-01-06 14:20:14 +01:00 by Zachary · 10 comments

System Information
Windows 10 x64
GTX 950M

Blender Version
Broken:
Date: 2019-01-05
Hash: 1461d0185c

Short description of error
Shift+Tab to remove tabs/spaces before text only seems to work for new text. Doesn't seem to work when copying and pasting text or opening a file that's been saved. I think this happens in 2.79 and as far as I know previous versions. I find myself spending most of my time copying and pasting to other text editors to remove tabs/spaces.

**System Information** Windows 10 x64 GTX 950M **Blender Version** Broken: Date: 2019-01-05 Hash: 1461d0185c04 **Short description of error** Shift+Tab to remove tabs/spaces before text only seems to work for new text. Doesn't seem to work when copying and pasting text or opening a file that's been saved. I think this happens in 2.79 and as far as I know previous versions. I find myself spending most of my time copying and pasting to other text editors to remove tabs/spaces.
Author

Added subscriber: @AFWS

Added subscriber: @AFWS

Added subscriber: @brecht

Added subscriber: @brecht
  • Is this affected by the View > Sidebar > Tabs as Spaces setting?
  • Does the file you copy/paste have use tabs or spaces for indentation?
* Is this affected by the View > Sidebar > Tabs as Spaces setting? * Does the file you copy/paste have use tabs or spaces for indentation?
Author

OK, so I tested copying code that was tabs and unchecked the "Tabs as Spaces" and it seemed to work. I guess that explains why copying the text wasn't working. Still is weird having to define if it's spaces or tabs. Not sure of any other text editor you have to do this. Might not be a "bug" ,but sure is annoying, LOL.

OK, so I tested copying code that was tabs and unchecked the "Tabs as Spaces" and it seemed to work. I guess that explains why copying the text wasn't working. Still is weird having to define if it's spaces or tabs. Not sure of any other text editor you have to do this. Might not be a "bug" ,but sure is annoying, LOL.

Added subscribers: @seijihariki-4, @brunobbs

Added subscribers: @seijihariki-4, @brunobbs
Bruno Boaventura Scholl self-assigned this 2019-03-13 22:46:40 +01:00

I, with a friend @seijihariki-4, have developed a fix for this issue. This is our first contribution and we would like to know how to submit it for review! It seems it was a problem of converting tabs and spaces when pasting text.

I, with a friend @seijihariki-4, have developed a fix for this issue. This is our first contribution and we would like to know how to submit it for review! It seems it was a problem of converting tabs and spaces when pasting text.
You can submit code here: https://developer.blender.org/differential/diff/create/
Bruno Boaventura Scholl was unassigned by Dalai Felinto 2019-12-23 16:35:29 +01:00

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Richard Antalik self-assigned this 2020-01-22 18:46:42 +01:00

Seems to be resolved by b4c14faeaf

Seems to be resolved by b4c14faeaf
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
4 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#60234
No description provided.