Remember the currently edited command when navigating through the history

Description

In Bash you can begin entering the command, then use Up key to navigate through the history and Down key to get back up to the command you've been editing. Unfortunately, CommandBox "forgets" the current command when doing it, so you can onlty get down to the last executed command. It would be nice to have these things working consistently. Thanks!

is blocked by

Gliffy Diagrams

Activity

Show:

Sergey Galashyn April 4, 2018 at 12:59 PM

This change in JLine3 sounds pretty cool. I'll try things out as soon as v4 is out. Thanks!

Brad Wood December 22, 2017 at 8:30 AM

The Jline3 upgrade seems to have fixed this. Read this ticket for a note on another change in JLine3 regarding history that I rather like. If this is strongly disliked by some, we can provide a way to turn it off.

https://ortussolutions.atlassian.net/browse/COMMANDBOX-736

Brad Wood August 11, 2016 at 3:46 PM

Oops, very sorry! I intended to paste the link above. Here it is:
https://github.com/jline/jline2/issues/265

Serhii Halashyn August 11, 2016 at 8:16 AM

Brad, thanks for your reply. I can't see your ticket in the JLine bug tracker (although it looks abandoned in general). Could you please comment with direct link to it?

Brad Wood August 10, 2016 at 8:24 PM

Thanks for the ticket Sergii. The history behavior is handled by the JLine Java library so unfortunately I have no control over how it works. It traps your up/down keystrokes and handles what's output to the console.

I have entered this ticket for JLine. Please feel free to comment your "vote" over there. If you know Java, you can also try submitting a pull request to the JLine project.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Components

Sentry

Created August 9, 2016 at 1:25 PM
Updated April 4, 2018 at 12:59 PM
Resolved December 22, 2017 at 8:30 AM