Merge lp:~paparomeo/byobu/byobu into lp:byobu
Proposed by
Pedro Romano
Status: | Merged |
---|---|
Merged at revision: | 2378 |
Proposed branch: | lp:~paparomeo/byobu/byobu |
Merge into: | lp:byobu |
Diff against target: |
24 lines (+4/-3) 1 file modified
usr/lib/byobu/include/select-session.py (+4/-3) |
To merge this branch: | bzr merge lp:~paparomeo/byobu/byobu |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dustin Kirkland | Pending | ||
Review via email: mp+221614@code.launchpad.net |
Description of the change
This branch adds named sessions starting with an underscore also as hidden sessions in alternative to named sessions starting with a dot, since tmux doesn't support session names starting with a dot. In the process it also adds support for hidden session in tmux if the session names start with an underscore, adding this feature to tmux based byobu.
To post a comment you must log in.
Brilliant, thanks for this. Merge committed. Will release soon.
Cheers!
:-Dustin
On Sat, May 31, 2014 at 4:20 PM, Pedro Romano /code.launchpad .net/~pmcnr/ byobu/byobu/ +merge/ 221614 /code.launchpad .net/~pmcnr/ byobu/byobu/ +merge/ 221614 byobu/include/ select- session. py' byobu/include/ select- session. py 2014-03-17 01:32:43 +0000 byobu/include/ select- session. py 2014-05-31 14:19:17 +0000 splitlines( ): "screen: %s" % s.strip()) append( "screen_ ___%s" % items[1]) decode( sys.stdout. encoding) splitlines( ): append( "tmux__ __%s" % s.split(":")[0])
<email address hidden> wrote:
> Pedro Romano has proposed merging lp:~pmcnr/byobu/byobu into lp:byobu.
>
> Requested reviews:
> Dustin Kirkland (kirkland)
>
> For more details, see:
> https:/
>
> This branch adds named sessions starting with an underscore also as hidden sessions in alternative to named sessions starting with a dot, since tmux doesn't support session names starting with a dot. In the process it also adds support for hidden session in tmux if the session names start with an underscore, adding this feature to tmux based byobu.
> --
> https:/
> You are requested to review the proposed merge of lp:~pmcnr/byobu/byobu into lp:byobu.
>
> === modified file 'usr/lib/
> --- usr/lib/
> +++ usr/lib/
> @@ -57,8 +57,8 @@
> if output:
> for s in output.
> s = re.sub(r'\s+', ' ', s)
> - # Ignore hidden sessions (named sessions that start with a ".")
> - if s and s != " " and (s.find(" ") == 0 and len(s) > 1 and s.count("..") == 0):
> + # Ignore hidden sessions (named sessions that start with a "." or a "_")
> + if s and s != " " and (s.find(" ") == 0 and len(s) > 1 and s.count("..") == 0 and s.count("._") == 0):
> text.append(
> items = s.split(" ")
> sessions.
> @@ -71,7 +71,8 @@
> output = output.
> if output:
> for s in output.
> - if s:
> + # Ignore hidden sessions (named sessions that start with a "_")
> + if s and not s.startswith("_"):
> text.append("tmux: %s" % s.strip())
> sessions.
> i += 1
>
>