davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.27k stars 613 forks source link

Single line option #252

Closed 8carlosf closed 7 years ago

8carlosf commented 9 years ago

Is it possible to use rofi as dmenu with 0 lines.. having run: in the same line as the options. If not, can we make it happen? I can try to code it if someone points me in the right direction..

Thanks

DaveDavenport commented 9 years ago

the problem mostly is that the width of an entry is variable, and therefor the number of elements that are visible. This makes scrolling/paginating more complex and less predictable for the user.

Given that I find the horizontal view unpleasant (partially because of above reasons) I never made a proper implementation. Patch is welcome though.

8carlosf commented 9 years ago

I understand that, but the thing is, I like dmenu using just a line on the top, on top of my i3bar (or lemonbar, or other bar) and not more than that.. it isn't a problem for me, because I use dmenu/rofi only to launch new apps, and I almost don't look at it. anyway, if I was to do a patch, you have implemented almost everything that is needed, we have columns, and '...' when the command is to long, we just need to use it all in one line.. We divide the row in X columns, add a new -inline N arg, N being how many columns of the X are used for the command and not to show the options.. and thats it.. can you help me look into that? I mean, I'm not familiar with the code base, this may be harder than I think..

carnager commented 9 years ago

all is there except for the input area not being in the same line...

rofi -lines 1 -show run -columns 20 -width 100% -location 2 -disable-history

fogine commented 8 years ago

:+1: for this feature, I really miss truly one-liner rofi

Anachron commented 8 years ago

I agree, I also wish this feature.

bearcatsandor commented 7 years ago

Consider this another vote for it. In fact, i'd assumed that's what the dmenu mode did.

DaveDavenport commented 7 years ago

You know what they say about the parental relation of assumptions.

jp1995 commented 7 years ago

Agreed with suggestion, would also love to have this!

DaveDavenport commented 7 years ago

Some work on this has been done: out

It will probably be part of the 1.5 release.

bearcatsandor commented 7 years ago

That looks fantastic! Thank you!

Faalagorn commented 7 years ago

Aw, that's the only thing that's preventing me to drop dmenu for the time being. The closest I got was to run it with rofi -show run -location 1 -width 100 -lines 1 -columns 20, though it still takes two lines and I can't use arrow keys to scroll the results which I was used to from dmenu.

Unless I'm missing something looking forward to implement it for the same reason stated above! (using it in pace of the title menu on i3)!

DaveDavenport commented 7 years ago

A first rough implementation in git branch barview

screenshot

Using the following theme: https://filebin.pw/qHc8/

https://filebin.pw/Vzz/

8carlosf commented 7 years ago

really happy that my suggestion is looking so good :) great work! I have simpler ones to make, when I get the time..

sardemff7 commented 7 years ago

This is now merged to master.

DaveDavenport commented 7 years ago

Description on how to use will be posted later.

d33tah commented 6 years ago

@DaveDavenport any chance you could point me to that description?

DaveDavenport commented 6 years ago

There is an example theme shipped with rofi: https://github.com/DaveDavenport/rofi/blob/next/themes/dmenu.rasi

if you set layout: horizontal; on the listview, it goes into barview mode.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.