![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Go to beginning of line with tags
Is there a reason why I can no longer use the 'home' key to go to the beginning of a line, if there's a tag there? Actually, I **THINK** it is 'no longer', because I've only noticed it since the last update.
I don't mind if there is a reason, it will just take me a while before I stop doing stuff automatically without checking if the cursor is at the right place. It took me 15 minutes to track down where my mistake was, after I made a change automatically and nothing was working anymore, then an indeterminate length of time to figure out WHY the error happened ![]() |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Home key goes to the left side, not the Beginning of the line (number)
AFAIK, it has always worked that way |
![]() |
![]() |
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
What I'm talking about is that it DOESN'T go all the way to the left side if there's a tag there. My edit screen there might be 5 lines of text between number 17 and 18, and I have to call them something, so I call them lines. Sorry if that isn't technically correct, but I don't know any other term.
To be clear, below are two sentences, and after are what I'm talking about: Do you want to come with me. <p>We will go to the school for our child's play. As of now (since last update), on the first sentence, the cursor would go to before the 'D', completely to the left, which is what I expect and it's always done. On the second sentence, the cursor would end up AFTER the '<' and before the 'p', which is NOT completely to the left. At least it is doing this to me, since Friday (well, I realized WHAT was happening last night, but the problem was occurring since Friday night). |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
on W7 64 it goes to the first character, any character, including the <
Try beautifying the file and see if that changes things. Code:
Do you want to come with me. <p>We will go to the school for our child's play. ![]() |
![]() |
![]() |
![]() |
#5 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Nope, any file I open, if there's a tag, it goes AFTER the <. I tried beautifying, and it changes nothing.
I have no idea what your W7 64 means. Oh, just got it I think - windows 7, 64bits? If so, I'm using Windows 8.1, 64bits. No, my example is just that, something typed up off the top of my head. I have no clue how to do a screen shot, so can't do that, and it wouldn't really show the problem anyway, just where the cursor ends up. |
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I noticed this the other day as well. Of course, I didn't notice it until I had started typing over the tag name. I can see why to do this. If the line starts with a tag and you need to change it, the "<" doesn't change. The bit I am missing is that I can't get to the actual start of the line. For the other code editors I use, home goes to the first non-whitespace character in the line. Pressing home again goes to the beginning of the line.
|
![]() |
![]() |
![]() |
#7 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Quote:
I just use the left arrow key to get there...when I remember and notice. I have to say I only remember AFTER still, not to where I can do it immediately yet. |
|
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
This may have changed with the advent of 2.0/Qt5, can't recall if it was mentioned. But I can say that in Windows Portable v 1.48 the Home key moves the insertion point to the absolute beginning of the current line (ie what's displayed), irrespective of beautify or tags.
But with 2.14 the Home key positions the insertion point to the absolute beginning of the displayed line on overflow lines and to inside first tag '<' on the first line. My preference would be as per 1.48, incidentally that's what you get with Sigil. BR |
![]() |
![]() |
![]() |
#9 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
So it is new and not just something I somehow overlooked. It makes a while since I had an overhaul of my 'books' where I needed to change/edit tags and such, but it was still something that I should have noticed if it changed much earlier.
|
![]() |
![]() |
![]() |
#10 | |
....
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
|
Quote:
As the tags I most frequently edit are indented, and you know how it is about cats preferring mice, it is not something that really affects me though, one way or the other. One could perhaps create an argument that if one wants the cursor to go to the beginning of a line that started with a tag then it is most likely one will be editing the tag, in which case going inside the first '<' could be regarded as useful??? |
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#12 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
![]() |
![]() |
![]() |
![]() |
#13 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
A new 'thing' I just found this morning. I'm not well-versed enough to know if any fix would correct this one as well, so I thought I'd mention it.
Each 'sentence' (or whatever you want to call it) began with a word followed by a hyphen to separate it, kind of word followed by definition. Example: alltud - (Irish) exile</p> Dhaoradh - (Irish) condemned</p> I wanted to add the missing initial <p> but the cursor only moved to the END of 'alltud' and 'Dhaoradh' with the Home key. |
![]() |
![]() |
![]() |
#14 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Use (REGEX mode) Search and replace Search: Code:
</p>\s+([A-Za-z"]) replace: Code:
</p> <p>\1 |
|
![]() |
![]() |
![]() |
#15 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Thanks. I only had about 6 lines to do, so once aware of the problem it was fine. My regex is very similar, once I mark the section of text for it to apply to
Search: </p>\n([a-zA-Z]) Replace: </p>\n<p>\1 Might I ask why you had \s+ in yours? Whenever I try to use it, it never seems to work as I intended...I'm probably misunderstanding what it's for. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Generated TOC at beginning of PDF via command line | alexandreaquiles | Conversion | 1 | 10-12-2014 03:24 AM |
Regex to search at beginning of line | kakkalla | Sigil | 30 | 06-03-2013 03:08 PM |
Regex to insert word at beginning of a line | macnab69 | Library Management | 1 | 05-20-2013 02:56 AM |
Amazon Tags - Popular tags vs Unique tags. | chrisanthropic | Writers' Corner | 6 | 09-19-2011 11:18 PM |
Line indents using "<div>" tags | HarryT | Kindle Formats | 11 | 04-29-2009 10:18 PM |