Mark lines with blue balls and jump between them
-
I remain far from Notepad++ for 2 years.
There are some doubts I have.
What option makes appear blue balls on the left of the sequence numbers(mark the line) and which are the keys that allow me jump the focus from one blue ball to another?
Is there a key sequence that mark the line with a blue ball(instead of mouse)? Is there one that unmark the line? -
@arí-ricardo-ody said in Mark lines with blue balls and jump between them:
Is there a key sequence that mark the line with a blue ball(instead of mouse)? Is there one that unmark the line?
These are called “bookmarks”. As it seems you already are aware, clicking with a mouse in the left margin (between line number and actual line content) will insert a bookmark. Ctrl-F2 will also turn on/off the bookmark. If you right click in the same area you will see an additional menu which also allows bookmarking, removal of bookmarks and also functions that deal with the bookmarked lines such as removal (deleting) them.
F2/Shift-F2 will advance forward/backwards through the bookmarks.The bookmarks can also be created when searching for text in the file/tab. Using the Mark function you see a button that can be ticked called “bookmark line”. The find field will contain text (or a regular expression), and clicking on “mark all” will create bookmarks on those lines where the search pattern is found.
Terry
-
Hello, @ari-Ricardo-ory, @terry-r, and All,
I wanted to give some advice to the OP when I came across something weird which might be an issue !
@terry-r :
You certainly know that, when you choose the
Search > Style All Occurrences of Token > Using 1st Style
option, after selecting the word Fix, in thechange.log
file, you can navigate between these occurrences with the two shortcuts :Ctrl + 1
andCtrl + Shift + 1
, on the main keyboard and, respectively, with the four other styles.Just a particularity : when you move in backward direction, the caret is moved, first, at the beginning of the current word
fix
, then if you go on backwards, the caret is then located at the beginning of the previous occurrence and so on ! So, so far so good !
In the same way, you may know that, in order to get the Find Mark Style, you can use the two shortcuts
Ctrl + 0
andCtrl+ Shift + 0
, on the main keyboard. So you can navigate between all the occurrences of marked text ! But, after a try, on my newWin 10
laptop, I’m sorry to tell you thatCtrl + 0
works correctly but theCtrl + Shift + 0
shortcut does not !?To be sure, in addition to my Bluetooth keyboard, I connected an USB keyboard and the results were unfortunately identical :-( OK for
Ctrl + 0
but KO forCtrl + Shift + 0
So, could you do some tests to verify this assumption ? Oddly, everything works correctly with my old
Win XP
laptop !Best Regards,
guy038
-
@guy038 said in Mark lines with blue balls and jump between them:
So, could you do some tests to verify this assumption ?
Oddly enough I cannot get the
Ctrl + 0
orCtrl + Shift + 0
to work. I have 2 words highlighted in 2 different styles, but those shortcut keys (with the0
) don’t appear to do anything. The shortcut keys involving1
(for first style) and2
(for second style marked) are working to provide forwards and backwards motion.I won’t be able to do anymore tests for a few hours, I have to deal with the log4j vulnerability on our network. Scans have identified several issues requiring immediate attention.
Later when I can I will use a portable version (in case my installation has issues) and see if anything further turns up with tests.
Terry
-
Hi, @terry-r and All,
Terry, may be, we’re speaking, each other, about different things ! I’m not concerned with styles
1
to5
at all but only with theMark
dialog.So, open the
change.log
tab, use theCtrl + M
shortcut, search for the wordfix
, in any case and click on theMark All
button. Then, use theCtrl + 0
andCtrl + Shift + 0
shortcuts to navigate from one occurrence of marked text to another, onwards and backward ! ( You don’t even need to tick theBookmark line
option )BR
guy038
-
Did that and could navigate up and down without issues. Tested in my installed v7.9.5, with lots of plugins, and on a bare-bones portable v8.1.9.3.
Debug info:
Notepad++ v8.1.9.3 (64-bit) Build time : Dec 6 2021 - 19:21:37 Path : D:\Applications\npp.8.1.9.3.portable.x64\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Pro (64-bit) OS Version : 2009 OS Build : 19042.1415 Current ANSI codepage : 1252 Plugins : mimeTools.dll NppConverter.dll NppExport.dll
Hope this helps
-
@guy038 said in Mark lines with blue balls and jump between them:
Terry, may be, we’re speaking, each other, about different things ! I’m not concerned with styles 1 to 5 at all but only with the Mark dialog.
Sorry, I don’t do much marking with styles, hence why I got confused with your first post. You had talked about style marking then jumped to the mark function (different) but I didn’t notice that, on a re-read I do now.
So back to testing I cannot get the
Ctrl + Shift + 0
to work. This was on 3 PC’s, as 2 PC’s are under work control and may have Group Policies applied which potentially adversely affect NPP I also tried another unaffected PC. So the result was always the same, the forward jump worked, but backwards never did. One work PC and the unaffected PC were both with a portable installation.So it would seem we have a problem, I won’t go so far as to say a bug, but it would seem, given @astrosofista test results there may be an environmental situation which prevents the backwards jump from working.
Terry
-
@guy038 said in Mark lines with blue balls and jump between them:
but the Ctrl + Shift + 0 shortcut does not !?
You are correct. This seems to be a long standing problem, discussed a few times BEFORE.
I just tested again and it still does not work for me.
It would be nice to have resolution to this, or more info if it works for some people and not others. -
@alan-kilborn
just to chime in (Note: I’m still on Npp v8.1.9)-
Ctrl+0 works for forward move to next mark
Ctrl+Shift+0 doesn’t work for anythingI also used Nir Sofer’s HotKeysList to verify there is no system level hot key assigned to Ctrl+Shift+0.
-
You’re right, sir. I’ve heard about this before, and it seems to be a long-standing issue.
I just tried it again, and it doesn’t work.
A solution to this or additional information about why it works for some and not for others would be welcome.