markus-bauer
markus-bauer
I looked at it again. This seems to work. I'm not very familiar with git so I just paste the new code for the above mentioned function below. The only...
Perhaps I don't understand the code correctly, this is what I remember from last week: The deque and rotate just puts the currently selected item at the front (+/- offset)....
About reverse: I proposed deq.reverse() because you have to reverse the iteration (the direction of the search). The (only) point of using deque is that the iteration starts with the...
I just meant, that I know what doesn't work, but I don't necessarily know how to fix it. And about rotating the deque: No, I thought it was clear that...
The iteration then should do this: ```python number_of_iterations = 0 for item in deq: if item_is_match(item): if foreward: shift_pointer_by(number_of_iterations) if backward: shif_pointer_by( - number_of_iterations) number_of_iterations += 1 ```
No need to apologize. First I have to clarify something. I was talking about an unfiltered list, so there's no guarantee that every entry is a match. As I (perhaps...
New version with better code for backward search: ```diff --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1710,19 +1710,30 @@ class scout(Command): if pattern == '..': return 1 - deq = deque(cwd.files) -...
Is this a duplicate of https://github.com/ranger/ranger/issues/1805? Possibly fixed here: https://github.com/ranger/ranger/commit/1cdcce0a44d031be13009a70e25cc4cf75789eac. Can you try the master branch and see if it works?
@mizhozan 1) `H` goes back in history and `cd -` goes back to the previous dir. Both should do what you describe. If they don't, then something is broken. 2)...
About the original request: What doesn't work is: 1) Appending to the filetitle. Because truncating would be wrong. 2) Prepending to the infostring. Because infostrings would get too long and...