Perhaps someone can clarify my (mis)understanding of navigation. I have relative line numbers enabled via SPC t r
. I am on line 459 and the point at which I want to jump to is on line 553. When I am on line 459 I can see that the relative line number is 94 but when I execute 9 4 j
it goes to another line, line 682
This happens when the file has functions which are collapsed
How do you guys normally navigate within a file? I tend to use spc j w
a lot.
@mario.cordova.862 Use visual rather than relative line numbers if working with collapsed code. From the documention in .spacemacs: "If set to `visual', line numbers are also relative, but lines are only visual lines are counted. For example, folded lines will not be counted and wrapped lines are counted as multiple lines". I use the following configuration in .spacemacs
dotspacemacs-line-numbers '(:visual t
:disabled-for-modes dired-mode
doc-view-mode
pdf-view-mode
:size-limit-kb 1000)
How do I get projectile
to refresh its list of projects? The directories for projects are already defined.
I use projectile-add-known-project
for this.
I already have the project roots defined, but I added a project to one of the roots, and I want Spacemacs to find it.
Without restarting Spacemacs.
@jr0cket Thank you! That worked like a charm
I do like a good code fold, especially when I discovered the z a
keybingings for toggling of the code fold in Evil normal state.