I need to have an arrow that has a vertical bar in the middle, something like this:
----|---->
in commutative diagrams. Tikzcd does not have such an arrow supported directly, as far as I can tell.
Any ideas on how to do this? Ideally I would like to still be able to have labels.
I found a way to do this in the math environment using \mathclap and + as shown in code for arrow with a short vertical line in the middle of the shaft (not perfect but good enough) but this does not work well within a commutative diagram.


$a\mathrel{\tikz[baseline=-0.5ex]{\draw[->,mid vert](0,0) --(1.2em,0);}}b\longrightarrow c$with the above preamble? Or\newcommand{\tobar}{\mathrel{\tikz[baseline=-0.5ex]{\draw[->,mid vert](0,0) --(1.2em,0);}}} $a\tobar b\longrightarrow c$? There is a long discussion how to make this symbol adjust to the font size, see this thread. (For a simple vertical bar you could also use\rule...) – May 29 '19 at 04:57