Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
206
Issues
206
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
ac6adbf2
Unverified
Commit
ac6adbf2
authored
Feb 20, 2018
by
mathieui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation (& formatting)
- nick colors are not random by default - /close is a useful command
parent
87ed4aff
Pipeline
#1186
passed with stages
in 1 minute and 56 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
doc/source/usage.rst
doc/source/usage.rst
+6
-4
poezio/tabs/conversationtab.py
poezio/tabs/conversationtab.py
+2
-3
poezio/tabs/muctab.py
poezio/tabs/muctab.py
+8
-6
No files found.
doc/source/usage.rst
View file @
ac6adbf2
...
...
@@ -81,13 +81,14 @@ The status of a tab is represented by its color:
You can go from one tab to another in many ways:
* ``Ctrl+n``
and ``Ctrl+p``
* ``Ctrl+n``
(next tab) and ``Ctrl+p`` (previous tab)
* :term:`/win` command
* :term:`/next` and :term:`/prev` commands
* ``Alt`` + a number
* ``Alt+j`` followed by a two-digits number
* ``Alt`` + a number
(to go to the tab with that number)
* ``Alt+j`` followed by a two-digits number
(same)
* ``Alt+e``, this will jump to the next tab with the highest priority. Priority
applies in this order: private message > highlight message > normal message.
* :term:`/close` command to close a tab and go back to the previous one
.. _rostertab:
...
...
@@ -163,7 +164,7 @@ This tab contains a multi-user conversation.
- **Blue**: participant
- **Grey**: visitor
The nicks have a
random color given by poezio (which can be changed with :term:`/recolor`)
The nicks have a
fixed color assigned using XEP-0392_.
#. Your information in that chatroom (the name of the room, your nick, your role
and affiliation).
...
...
@@ -278,3 +279,4 @@ have autojoin set to True.
:alt: Bookmarks tab screenshot
.. _XEP-0070: https://xmpp.org/extensions/xep-0070.html
.. _XEP-0392: https://xmpp.org/extensions/xep-0392.html
poezio/tabs/conversationtab.py
View file @
ac6adbf2
...
...
@@ -231,9 +231,8 @@ class ConversationTab(OneToOneTab):
return
True
else
:
self
.
_text_buffer
.
add_message
(
"
\x19
%(info_col)
s}No information available
\x19
o"
%
{
'info_col'
:
dump_tuple
(
get_theme
()
.
COLOR_INFORMATION_TEXT
)
})
"
\x19
%(info_col)
s}No information available
\x19
o"
%
{
'info_col'
:
dump_tuple
(
get_theme
()
.
COLOR_INFORMATION_TEXT
)})
return
True
@
command_args_parser
.
quoted
(
0
,
1
)
...
...
poezio/tabs/muctab.py
View file @
ac6adbf2
...
...
@@ -523,16 +523,18 @@ class MucTab(ChatTab):
if
'170'
in
status_codes
:
self
.
add_message
(
'
\x19
%(warn_col)
s}Warning:
\x19
%(info_col)
s}'
' This room is publicly logged'
%
{
'info_col'
:
info_col
,
'warn_col'
:
warn_col
},
' This room is publicly logged'
%
{
'info_col'
:
info_col
,
'warn_col'
:
warn_col
},
typ
=
0
)
if
'100'
in
status_codes
:
self
.
add_message
(
'
\x19
%(warn_col)
s}Warning:
\x19
%(info_col)
s}'
' This room is not anonymous.'
%
{
'info_col'
:
info_col
,
'warn_col'
:
warn_col
},
' This room is not anonymous.'
%
{
'info_col'
:
info_col
,
'warn_col'
:
warn_col
},
typ
=
0
)
def
handle_presence_joined
(
self
,
presence
,
status_codes
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment