Issue 132: The name of the buffer in the modeline should be the path of 
the file relative to cwd
http://code.google.com/p/yi-editor/issues/detail?id=132

Comment #2 by coreyoconnor:
For reference: In Vim the ":b" command switches between buffers. This 
accepts a
number of different specifiers for the buffer: A numeric index of the 
buffer, the
path of the file backing the buffer, the filename of the file backing 
the buffer.

I have to catch a flight, but here's my current notes.
One method to resolve this would be to support something similar:
 * The modeline displays the name of the buffer.
 * The name of a file-backed buffer is it's absolute path.
  * The modeline is a view of the buffer name; The result of apply a map 
from buffer
names to displayed buffer names (displayName for this discussion). For 
a buffer not
backed by a file the displayed text is the buffer name. For a buffer 
backed by a file
the displayed text could be one of:
  * The relative path
  * The filename
  * The absolute path

switchToBufferWithNameE would still switch to the buffer with a name 
exactly as
specified.
A new command would be introduced that switches to the buffer 
identified by applying
the reverse of the displayName map to the input. This could require 
some UI to
disambiguate if multiple buffers have the same display name.





-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to