emacs-helm/helm — pull request #291 by russell (2013-09-15 03:00:13+00:00)
Title: Refactored buffer-list display.

Hi,

I have tried to extend the work that was done to show the buffer default directory remote terminals to cover remote files as well. The primary reason for doing this is that when i have alot of the same named file open on different servers it sometimes can be hard to tell the difference, and choose the correct file.

In the process of changing the behavior i have refactored the display code and removed the special cases for remote files. Now there is a generic name-prefx variable that can be used to prefix symbols to the buffer names. I hope you like it.

Allong the way I have fixed a display bug where remote buffers were not being truncated to the same length. I also took a look at bug #170 and by chance found a simple fix for this ironicly on the TabsAreEvil emacswiki page.

I'm happy to update if you think that the formatting is a bit funny with the "(in `%s')" display. I would have removed some duplication using flet but I haven't because I didn't want to introduce any symbols that you weren't already using.

Before:
![screenshot from 2013-09-15 12 42 39](https://f.cloud.github.com/assets/2660/1144613/e2b73594-1db2-11e3-90a7-6cbd22c962bc.png)

After:
![screenshot from 2013-09-15 12 41 56](https://f.cloud.github.com/assets/2660/1144614/ea713dac-1db2-11e3-8f4e-1484af8275cd.png)

Thanks,
Russell