This macro shows the %p and %!P path (or either of them) in the Status Line, trimmed to size by snipping the middle part.
If you want to have the Current File's and/or Current Path in the Status Line (using Custom Info A resp. B) but it
doesn't fit, this macro is the right one for you. It snips off the middle part of the path and replaces it with "...", so that you always see the important parts, the
beginning and the end of the path.
It's no problem to use the macro only for one kind of path (probably the Current Path, for the Current File's Path can be shown in the Caption). Just leave out the
definition for one of the Custom Infos (
You can also play around with the lengths, if the default of 40 characters is too short or too long for your Status Line. You are pointed to the relevant numbers in the file's documentation.
Macro contributed by Robert <w.m.lgmx.net>.