Text Editor: Option to auto-reload externally modified text files #115333

Open
Eugene-Kuznetsov wants to merge 1 commits from Eugene-Kuznetsov/blender:ek_auto_reload into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

This adds a checkbox "Auto reload" in the text editor menu. When it is checked, Blender will automatically reload the file if it is modified externally while it is "clean" (has no local modifications). It's useful when the user uses an external editor and only needs to go into the text editor pane to run the script. (At present, it requires the user to decide whether to reload or not; this saves a couple of mouse clicks.)

This adds a checkbox "Auto reload" in the text editor menu. When it is checked, Blender will automatically reload the file if it is modified externally while it is "clean" (has no local modifications). It's useful when the user uses an external editor and only needs to go into the text editor pane to run the script. (At present, it requires the user to decide whether to reload or not; this saves a couple of mouse clicks.)
Iliya Katushenock added this to the Python API project 2023-11-24 10:40:11 +01:00
Iliya Katushenock added the
Interest
Text Editor
label 2023-11-24 10:40:14 +01:00
Iliya Katushenock changed title from Option to auto-reload externally modified text files to Text Editor: Option to auto-reload externally modified text files 2023-11-24 10:40:34 +01:00

Just notes about general things:

Just notes about general things: - https://wiki.blender.org/wiki/Style_Guide/C_Cpp : - Comment style. - Early return pattern. - Some variables might be const. - https://wiki.blender.org/wiki/Style_Guide/Commit_Messages - Commit/PR description:
Eugene-Kuznetsov force-pushed ek_auto_reload from 138d16f8e9 to 84cc086161 2023-12-06 17:26:32 +01:00 Compare
Eugene-Kuznetsov force-pushed ek_auto_reload from 84cc086161 to 7459fdf568 2023-12-06 17:32:53 +01:00 Compare
Eugene-Kuznetsov force-pushed ek_auto_reload from 7459fdf568 to cd18bab612 2023-12-06 17:33:56 +01:00 Compare
Author
Contributor

I don't see anything in the style guide about the early return pattern.

I don't see anything in the style guide about the early return pattern.
Eugene-Kuznetsov force-pushed ek_auto_reload from cd18bab612 to 376df855ec 2024-01-27 00:16:57 +01:00 Compare
Eugene-Kuznetsov force-pushed ek_auto_reload from 376df855ec to 2e36f2e5d6 2024-02-06 08:57:48 +01:00 Compare
Eugene-Kuznetsov force-pushed ek_auto_reload from 2e36f2e5d6 to 6ecc8b2dfe 2024-03-04 05:59:03 +01:00 Compare
Eugene-Kuznetsov force-pushed ek_auto_reload from 6ecc8b2dfe to 000c27eaba 2024-04-02 07:24:27 +02:00 Compare
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u ek_auto_reload:Eugene-Kuznetsov-ek_auto_reload
git checkout Eugene-Kuznetsov-ek_auto_reload
Sign in to join this conversation.
No reviewers
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
2 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#115333
No description provided.