karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Commented: (KARAF-60) Improve history support by using the !
Date Sun, 19 Sep 2010 19:51:32 GMT

    [ https://issues.apache.org/jira/browse/KARAF-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912278#action_12912278
] 

Guillaume Nodet commented on KARAF-60:
--------------------------------------

I'm thinking this should be handled by the low-level jline code rather than in the above layer.
Supporting Ctrl+R should be done in the same way.

>  Improve history support by using the !
> ---------------------------------------
>
>                 Key: KARAF-60
>                 URL: https://issues.apache.org/jira/browse/KARAF-60
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Assignee: Jean-Baptiste Onofré
>         Attachments: SMX4KNL-237.patch
>
>
> the history command is cool but it would be nice to be able to use things like:
>     * !142 (run the command from the history with index 142)
>     * !os (run last command starting with "os")
> =========================
> See http://www.gnu.org/software/bash/manual/html_node/Event-Designators.html
> =========================
> with this patch, we can access history command list with
> ! indext
> ! commandPrefix
> for example, history we get
> 345 osgi/list
> then
> "! 345" or "! os" we get "osgi/list" execute again
> seems we have to add a whitespace between ! and the index number or commandPrefix, so
the syntax is not exactly same as bash (which no whitespace between ! and index number)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message