Fork me on GitHub
#spacemacs
<
2020-04-07
>
Mario C.18:04:38

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

Mario C.18:04:28

This happens when the file has functions which are collapsed

Mario C.18:04:21

How do you guys normally navigate within a file? I tend to use spc j w a lot.

practicalli-johnny20:04:21

@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)

OrdoFlammae22:04:39

How do I get projectile to refresh its list of projects? The directories for projects are already defined.

zane22:04:35

I use projectile-add-known-project for this.

OrdoFlammae22:04:58

I already have the project roots defined, but I added a project to one of the roots, and I want Spacemacs to find it.

OrdoFlammae22:04:07

Without restarting Spacemacs.

aisamu15:04:47

I usually open a random file within the project (with the regular SPC f f), then projectile picks it up

Mario C.22:04:51

@jr0cket Thank you! That worked like a charm

practicalli-johnny23:04:52

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.

aisamu15:04:47

I usually open a random file within the project (with the regular SPC f f), then projectile picks it up