emacs-helm / helm

Emacs incremental completion and selection narrowing framework
https://emacs-helm.github.io/helm/
GNU General Public License v3.0
3.36k stars 389 forks source link

`helm-buffer-list` format #250

Closed jpablobr closed 11 years ago

jpablobr commented 11 years ago

Hi,

Is there a way to change the helm-buffer-list format to look a bit more like the ibuffer?

My problem is mostly due to the way helm truncates the file name in the candidates buffer:

Helm:

foo_bar_adffilters.js...      2.8K  coffee-mode
*magit: foo*                   378  magit-status-mode
jpablobr-tmp.md              51.1K  markdown-mode
*Shell @ /Users/jpab...       7.4K  shell-mode (shell<6> run)
foo_bar_long_file_fi...        748  js2-mode
f_resources_filtr.ht...       1.9K  haml-mode
test_really_long_fil...       1.9K  enh-ruby-mode
*Shell @ /Users/jpab...       2.9K  shell-mode (shell run)
foo_99999999proval.j...        426  js2-mode
work_package.js                284  js2-mode

Ibuffer:

chosen.js.coffee         223 Coffee           ~/code/path_to/chosen.js.coffee
boards.js               2450 Javascript-IDE   ~/code/path_to/boards.js
comments.js              478 Javascript-IDE   ~/code/path_to/comments.js
datepicker.js            684 Javascript-IDE   ~/code/path_to/datepicker.js
timesheet_appro...       426 Javascript-IDE   ~/code/path_to/timesheet_approval.js
work_package.js          284 Javascript-IDE   ~/code/path_to/work_package.js
tagged_item_reg...      1430 Coffee           ~/code/path_to/settings/tagged_item_registers.js.coffee
test.rb                 2718 EnhRuby:1/2      ~/tmp/test.rb
timeline_entry.js       1051 Javascript-IDE   ~/code/path_to/timeline_entry.js

I like how ibuffer shows me the full file path, since I might have files with the same name in different directories.

EDIT:

Seems like helm is truncating the buffer at a 60 column width... is that like a custom variable?

Hope that make sense.

Thanks!

thierryvolpiatto commented 11 years ago

Move your mouse on buffer-name. or customize `helm-buffer-max-length'.

Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997

jpablobr commented 11 years ago

Cool! (setq helm-buffer-max-length 40) did the trick!