Closed nightscape closed 8 years ago
I had a little more time and made some progress: The completion list is automatically filled after every keypress.
Now it would be great if choosing items from the list view would work and probably an additional shortcut like Ctrl+3
for the third entry.
By the way, i think we can get rid of the old Entry now, and just use SearchEntry (and potentially move more to the XML), since the code to switch between Entry and SearchEntry was only there for Travis..
Ok, I moved your GTK 3.14 commit to the beginning, squashed all WIP commits into one commit and added a last commit for removing the Entry/SearchEntry distinction. There are probably some quirks left, but I think this is already a huge improvement usability-wise and can be merged from my POV.
Haha, noticed one error rather quickly: When trying to type
rb "foo"
it crashes after typing the first "
because the evaluate-on-every-keypress executes ruby
with an invalid syntax:
ruby -e 'puts "'
Possible options:
evaluate_live=true
per completion if if makes sense to evaluate immediately or false
if only when pressing TABOther ideas? Unfortunately, my vacation is over tomorrow and I probably won't have much time to work on this for a while...
Hi,
Since I have not much time either, commits will go down quite a bit. I think I will see to fix that ruby bug over the coming days and then merge because it's a pretty big bug. I'll merge this afterwards and release a new version.
I think we can open tickets with small ideas and improvements as a sort of task list for now.
Also, to add to this list:
I think TAB should not switch to the command ist but cycle through the completions, like bash does. You can always press up+down, but tab should complete stuff ..
The two commits about CSS and Glade should allow users to modify the UI rather arbitrarily (if they keep the naming). The corresponding config files are
~/.config/rrun/rrun.glade
~/.config/rrun/style.css
I'm not at all an expert when it comes to styling things, even less so with GTK, but maybe we can find and motivate someone who has already done something like that. Could you merge this and build a new package? Then we could maybe contact some GTK theme authors if they wanna give it a try :blue_heart: :green_heart: :heart:
SorryI didn't respond yet. Thanks so far! I've pushed some code to complete the entry field on tab, as it has been in version < 0.1. But so far I find it hard to do stuff like "chromium google.de", after completing chromium... mhh.. I find this more in line with my usual workflow..
Sorry i didn't have more time for this. The GTK and Glade stuff is awesome, but i think this pull request needs more time, before creating a new release. In particular i think the following should work:
Features 1a and 3 could also be done after merging this PR, i think. But the first 2 points are what make the new version less usable, from my point of view..
Just pushed two commits addressing 1. and 2.
A minor issue is that the container does not shrink when the completion list shrinks, but I think this is not a show-stopper.
Note that you need to overwrite your ~/.config/rrun/rrun.glade
with the one from the sources in order for the second commit to work.
Do you think it's good to merge now? I would like to add some other features (especially caching), but I don't want to start anything new before having this one finished.
Thanks! I have pushed some minor tweaks:
Nevertheless, i would merge this PR in this state.
Also, i think we'll need to refactor main.rs. It's at a point where it is very complex and hard to understand, imo...
Anyway, thanks very much for your input :)
Don't merge yet, this is work in progress. Just opening the PR to keep track of the history.