Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-04-20 20:58:43



Reply to topic  [ 3 posts ] 
Multi-line select shift-tab reducing indent for other lines 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 387
Location: Columbus area, OH, USA
Reply with quote
I don't edit scripts extensively in SL, nor even make that many changes often. I recently noticed that when I select multiple lines and shift-tab to reduce the indent additional lines below the initial selection seem to get selected and their indention modified too. It does not do this with selecting lines and tabbing to increase their indent.
Code:
Cool VL Viewer v1.32.2.40, Mar 15 2025 09:30:31
Release notes
Binaries and directories in use

CPU: AMD Ryzen 7 3700X 8-Core Processor (4398 MHz)
Memory: 64209MB
OS version: Linux-x86_64 v6.13.7-200.fc41.x86_64
Memory manager: jemalloc v5.3.1-20250221
Graphics: NVIDIA GEFORCE GTX 1080 TI/PCIE/SSE2
OpenGL version: 4.6.0 NVIDIA 570.124.04
Detected VRAM: 11264MB
J2C decoder: OpenJPEG: 1.4.0.635f
Audio driver: OpenAL v1.1 ALSOFT 1.23.1 (OpenAL Soft: OpenAL Soft)
Networking backend: libcurl 7.47.0/OpenSSL 1.0.2u/zlib 1.3.1.zlib-ng
Browser plugin: Dullahan 1.13.3/CEF 134.3.1/Chromium 134.0.6998.89

Built with: GCC v8.3.0
Compiler-generated maths: SSE2.

Compile flags used for this build:
-O3 -fno-delete-null-pointer-checks -fno-ipa-cp-clone -fno-align-labels -fno-align-loops -fsched-pressure -frename-registers -fweb -fira-hoist-pressure -DNDEBUG -std=c++17 -fno-stack-protector -fcf-protection=none -U_FORTIFY_SOURCE -fno-threadsafe-statics -fPIC -pipe -g -gdwarf-4 -fno-var-tracking-assignments -fexceptions -fno-strict-aliasing -fvisibility=hidden -fsigned-char -m64 -mfpmath=sse -fno-math-errno -fno-trapping-math -pthread  -DLL_LINUX=1 -DLL_JEMALLOC=1 -DLL_FMOD=1 -DLL_OPENAL=1


Attachments:
File comment: Log while on my LH parcel and editing a new, Test script
CoolVLViewer.zip [28.14 KiB]
Downloaded 14 times
2025-03-19 13:44:12
Profile

Joined: 2009-03-17 18:42:51
Posts: 5970
Reply with quote
More or less fixed for next release.

By "more or less", I mean there are still corner cases where it badly un-indents one line past the selected block of lines, but these cases also happen with LL's official viewer (so, if you want them fixed some day, file a bug report for LL's viewer itself)...

I however fixed the selection after un-indenting (unlike what happens with LL's viewer).

The text editor UI is sadly extremely fragile and its code extremely dirty: basically, it relies on a linear cursor position (counted from 0 to the text total length) and does not have any idea at which line a given position falls... It would deserve a full rewrite, but I'm afraid I can't afford spending time on this.


2025-03-21 13:14:29
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 387
Location: Columbus area, OH, USA
Reply with quote
I appreciate you looking into this and improving it the best you can. I don't edit extensively in SL. If I need, I save the file out and make edits before reloading. I tried using the feature to spawn gedit but I never got used to it and the lack of syntax highlights made it harder to use. I could try to create my own syntax highlighting .lang file again though.


2025-03-21 16:41:18
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.