al3x,
@al3x@hachyderm.io avatar

Today I have used VS Code. Because I couldn’t get a file browser working in a logical way in vim. Almost every action resulted in a behavior that surprised me; negatively.

whynothugo,
@whynothugo@fosstodon.org avatar

@al3x Personally, I don’t use a file browser inside the text editor; I just use an external file browser. I see as a component in my IDE, not as the parent of the environment.

al3x,
@al3x@hachyderm.io avatar

@whynothugo how does that work? Could you briefly describe a common flow?

  1. I'm looking at source file x. See reference to y. 2) navigate to file y.

whynothugo,
@whynothugo@fosstodon.org avatar

@al3x For languages where it is available, I use the "jump to definition" ("gd") a lot. ctrl-o will [by default] jump back when using this kind of navigation.

That aside, I use a fizzy-file finder similar to https://github.com/ctrlpvim/ctrlp.vim. It's flow is very similar to sublime's Ctrl+P, where I can just type bits of the filename and it does some fuzzy-matching.

Specifically, I use https://github.com/ibhagwan/fzf-lua, mapped to "<Leader>p", but this is just my chosen implementation of the same general idea.

al3x,
@al3x@hachyderm.io avatar

@whynothugo Makes sense. This is my usual workflow too.

In this particular case I had a project where the structure was important and I wanted to be able to compare different subfolders.

I hoped I'll get that done using netrw. Because I'm not used to it, I haven't been able to.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • vim
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines