tridactyl / tridactyl

A Vim-like interface for Firefox, inspired by Vimperator/Pentadactyl.
https://tridactyl.xyz
Other
5.28k stars 401 forks source link

Command line on top #4040

Open jkavalec opened 2 years ago

jkavalec commented 2 years ago

Hi,

I know it is not in spirit of Vim, but it would be nice if there was option to have the whole command line interface on top of browser, with command line at the very top, with options going down, the thing is that most apps control from top, and it is not so convenient to always change focus when switching to browser.

vintnes commented 2 years ago

This is 100% style. Check out :colourscheme quake for inspiration. https://github.com/tridactyl/tridactyl/blob/master/src/static/themes/quake/quake.css

bovine3dom commented 2 years ago

as vintnes says, this is possible with CSS. I personally use :colours quakelight which is built-in :)

Edit: Ah, I see, you want the order changed. Just add an order: 2 to the completions to swap them around :)

diff --git a/src/static/themes/quakelight/quakelight.css b/src/static/themes/quakelight/quakelight.css
index 2d58428e..1adcff66 100644
--- a/src/static/themes/quakelight/quakelight.css
+++ b/src/static/themes/quakelight/quakelight.css
@@ -13,3 +13,7 @@
     left: 0% !important;
     box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 15px !important;
 }
+
+:root #completions {
+    order: 2;
+}
jkavalec commented 2 years ago

Great, thank you for advice. So I can copy quakelight into ~/.config/tridactyl/themes/custom/custom.css, and change order for completions?

I was trying to do some modifications on Windows and have problem loading custom tridactylrc file, I made simple config just to unbind F1, and it doesn't take it from ~/.tridactylrc, ~/.config/tridactyl/tridactylrc or ~/.config/tridactyl/_tridactylrc, I tried both Portable Firefox and standart installation, but I am unable to make it work.

I triead to create tridactylrc file via ex command, but it didn't create any or at least didn't put it to expected folders (see above)

I tried also changing profile folder from 'auto' to ~/.config/tridactyl - which was valid path that could be worked with in Powershell.

Any idea how to get it to work?

bovine3dom commented 2 years ago

Is :native working?

Otherwise it would be easier to just use :colours --url to load the theme from e.g. a GitHub gist

jkavalec commented 2 years ago

installing nativemessenger helped me to fix config related problems, importance of this should be highlighted in docs, I went over it at the beginning when reading docs but didn't think it is important to bother with it.

Theme finally works as I wanted, I think this one where your command line is fixed at top should make it into default themes, having it jump all over the place as you type isn't very convenient.

Now I am really happy with how it works, thank you.