jEdit Community - Resources for users of the jEdit Text Editor
Next line and beginning of the next line
Submitted by kkerst on Monday, 17 May, 2010 - 18:12
I have a basic question: When using the arrow keys to move the caret/cursor to the next line, the position stays where it's at opposed to moving to the beginning of the next line. How do I configure Jedit such that the cursor returns to the beginning of the line each time I use the arrow keys to move to next line?

Thanks!

kkerst
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
macro
by Robert Schwenn on Mon, 17/05/2010 - 19:50
I'm afraid You have to write macros and assign the arrow keys to them.
 
Seriously? I mean, really? Th
by kkerst on Mon, 17/05/2010 - 23:25
Seriously? I mean, really? This seems like a simple thing to control; isn't there a way to tell it to go to the next line each time? I come from the textpad world, and this is default behavior.
 
"Each time" what?
by Robert Schwenn on Tue, 18/05/2010 - 19:49
"Each time" what?
 
Each time I enter some text o
by kkerst on Wed, 19/05/2010 - 22:52
Each time I enter some text on a line, I want the cursor to return to the beginning of the next line that already has text on it. More specifically, say I have the cursor at the beginning of the first 'a' in the first line below.

Cursor at front of first 'a':
aaaaa
bbbb
cccc
dddd

Say I add some text to the first line:

--aaaaa
bbbb
cccc
dddd

You notice, I entered two dashes. At the end of the second dash, if I press the down arrow key, I want the cursor to return to the beginning of the next line, not stay where it's at on the next line. This is a handy feature in Textpad, since I normally only add something to beginning of each line manually, without needing to actually arrow over each time to beginning of the line. I'm using OS X.

Ken
 
Seriously
by Robert Schwenn on Thu, 20/05/2010 - 20:04
I'd never thought that someone could wish such a feature, seriously Eye-wink. And I'm pretty sure this feature doesn't exist. But as I said: You could save a two-line macro like this:

textArea.goToNextLine(false);
textArea.goToStartOfLine(false);

maybe as "down_carriage-return.bsh" to one of the macro directories and bind it to the down arrow key. it should work.

Robert
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293