MoveLineLeftEdge
MoveLineLeftEdge
Hello,
I mapped my home key to MoveLineLeftEdge, expecting that it would bring m to the first non-white space on a line, instead of the first column.
If I have a line that is tabbed/spaced/indented, and I hit home, I dont want to go to column 1, but the start of the first word.
Is MoveLineLeftEdge supposed to do that? Is there a command that does? Or should I write a macro to do it?
Thanks for your time,
-Andy
I mapped my home key to MoveLineLeftEdge, expecting that it would bring m to the first non-white space on a line, instead of the first column.
If I have a line that is tabbed/spaced/indented, and I hit home, I dont want to go to column 1, but the start of the first word.
Is MoveLineLeftEdge supposed to do that? Is there a command that does? Or should I write a macro to do it?
Thanks for your time,
-Andy
sweet. Thank you.
Ok, have another question. I'm trying to setup highlighting for .ini files.
It mostly works really well!
things like
[section]
highlight ok, but when there is a space, it only highlights up the space:
[highlighted notHighlighted]
Also, I dont understand the "Pattern" setting (in the keywords tab). I thought it was a regular regex, but it doesnt seem to. I currently have the "Reserved Words" "Pattern" set to: [*]
I though it should be: \[.*\]
but that doent highlight anything at all.
In "User Defined 1" I have the pattern set to: *=
and that works great.
Any hints?
Thanks again for the help
-Andy
Ok, have another question. I'm trying to setup highlighting for .ini files.
It mostly works really well!
things like
[section]
highlight ok, but when there is a space, it only highlights up the space:
[highlighted notHighlighted]
Also, I dont understand the "Pattern" setting (in the keywords tab). I thought it was a regular regex, but it doesnt seem to. I currently have the "Reserved Words" "Pattern" set to: [*]
I though it should be: \[.*\]
but that doent highlight anything at all.
In "User Defined 1" I have the pattern set to: *=
and that works great.
Any hints?
Thanks again for the help
-Andy
Also, I dont understand the "Pattern" setting (in the keywords tab). I thought it was a regular regex, but it doesnt seem to.
As you have guessed the pattern is not a regexp. It is nothing more than simple pattern matching similar to MS-DOS wildcards and only supports * and ?.
I currently have the "Reserved Words" "Pattern" set to: [*]
This should have worked, but as I can see it does not

I will have to take a closer look into why this is not working and maybe post a Zeus patch to fix it.
Cheers Jussi
I hate to be a bug... could I ask one more little change?
Could the MoveLineFirst function make sure the scroll bar is all the way to the left first, and then to go the first word?
On really long lines, that cause the screen to scroll horizontally, when I press home it does go home, but its right up to the left side, not scrolled back to where I can see the left hand margin.
... but I suppose that could be dangerous. If a line is tabbed so far over you have to scroll just to get to it, then setting hbar.position = 0, then the firstWord would just have to turn around and set hbar.position = wayOutThere to get to the first word.
probably wouldnt happen a lot though. I dunno.
I could also just write a macro to do it. (Boy! I love saying that!)
unless you were gonna add it to MoveLineFirst.
Thanks!
-Andy
Could the MoveLineFirst function make sure the scroll bar is all the way to the left first, and then to go the first word?
On really long lines, that cause the screen to scroll horizontally, when I press home it does go home, but its right up to the left side, not scrolled back to where I can see the left hand margin.
... but I suppose that could be dangerous. If a line is tabbed so far over you have to scroll just to get to it, then setting hbar.position = 0, then the firstWord would just have to turn around and set hbar.position = wayOutThere to get to the first word.
probably wouldnt happen a lot though. I dunno.
I could also just write a macro to do it. (Boy! I love saying that!)
unless you were gonna add it to MoveLineFirst.
Thanks!
-Andy
This change will be in the next patch.Could the MoveLineFirst function make sure the scroll bar is all the way to the left first, and then to go the first word?
Here is a MoveLeft.Lua macro that will do exactly thisI could also just write a macro to do it. (Boy! I love saying that!)

Code: Select all
function key_macro()
screen_update_disable()
MoveLineFirst()
screen_update_enable()
MoveLineHome()
screen_update()
end
key_macro() -- run the macro
Whoa! Hold on there! I'v had enough!
You cant offer really good support like that and not expect me to register. I made it to day three of my evaluation and I'm ready to buy!
Thanks for the help, and thanks for a great editor.
PS: if you get [*] working for .ini's I can also use [[*]] to color [[strings in lua]], right?
-Andy
You cant offer really good support like that and not expect me to register. I made it to day three of my evaluation and I'm ready to buy!
Thanks for the help, and thanks for a great editor.
PS: if you get [*] working for .ini's I can also use [[*]] to color [[strings in lua]], right?

-Andy
Hi Andy,
Zeus technical support is free to all Zeus, irrespective of whether the user is registered or not.
The unregistered version runs fully functional for 45 days and I would think it takes about this long just to come to terms with the many ways Zeus can be configure and tweaked.
For these reason I strongly suggest taking your time to fully evaluate the software before bothering with registration
I m glad you are enjoying the evaluation
The [*] feature will be working in the next Zeus patch (due in a few weeks) and this should color [[strings in lua]] provided the strings do not span more than one line.
The [[strings in lua]] spanning mutiple lines requires quite a bit of re-work of the Zeus colorizer and it is on the todo list, but don't expect to see the feature too soon
Cheers Jussi
You cant offer really good support like that and not expect me to register. I made it to day three of my evaluation and I'm ready to buy!
Zeus technical support is free to all Zeus, irrespective of whether the user is registered or not.
The unregistered version runs fully functional for 45 days and I would think it takes about this long just to come to terms with the many ways Zeus can be configure and tweaked.
For these reason I strongly suggest taking your time to fully evaluate the software before bothering with registration

Thanks for the help, and thanks for a great editor.
I m glad you are enjoying the evaluation

PS: if you get [*] working for .ini's I can also use [[*]] to color [[strings in lua]], right?
The [*] feature will be working in the next Zeus patch (due in a few weeks) and this should color [[strings in lua]] provided the strings do not span more than one line.
The [[strings in lua]] spanning mutiple lines requires quite a bit of re-work of the Zeus colorizer and it is on the todo list, but don't expect to see the feature too soon

Cheers Jussi
The latest Zeus patch found here: http://www.zeusedit.com/viewtopic?t=975
will now correctly handle the [*][/b] pattern
Cheers Jussi
will now correctly handle the [*][/b] pattern

Cheers Jussi