lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

FindRefs sort #98

Closed mckellyln closed 6 years ago

mckellyln commented 6 years ago

Hi, Thx for rtags and rtags.vim - totally awesome. I am wondering about sorting the FindRefs (-r -e) output. I do not see a meaningful sort flag in rc so I am wondering about piping the rc output thru sort. Anyone else done something similar ? Would I edit the cmd to just add "| sort" ?

mckellyln commented 6 years ago

Something like this works:

'/bin/bash -c "' . cmd . ' | sort"'

since its execve'd. Maybe there is a cleaner way ...

mckellyln commented 6 years ago

Closing