Skip to content

Commit

Permalink
swap default key bindings for goto_chat and select_contact
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Jan 5, 2025
1 parent 3de1246 commit 325ece1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Interactive Commands:
Ctrl-f jump to unread chat
Ctrl-g toggle show help bar
Ctrl-l toggle show contact list
Ctrl-n search contacts
Ctrl-n goto chat
Ctrl-p toggle show top bar
Ctrl-q quit
Ctrl-s insert emoji
Expand All @@ -63,7 +63,7 @@ Interactive Commands:
KeyUp select message
Alt-d delete/leave current chat
Alt-e external editor compose
Alt-n goto chat
Alt-n search contacts
Alt-t external telephone call
Alt-/ find in chat
Alt-? find next in chat
Expand Down Expand Up @@ -676,7 +676,7 @@ This configuration file holds user interface key bindings. Default content:
find_next=\33\77
forward_msg=\33\162
forward_word=
goto_chat=\33\156
goto_chat=KEY_CTRLN
home=KEY_HOME
increase_list_width=\33\56
jump_quoted=\33\161
Expand All @@ -697,7 +697,7 @@ This configuration file holds user interface key bindings. Default content:
react=\33\163
right=KEY_RIGHT
save=KEY_CTRLR
select_contact=KEY_CTRLN
select_contact=\33\156
select_emoji=KEY_CTRLS
send_msg=KEY_CTRLX
spell=\33\44
Expand Down
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "5.5.5"
#define NCHAT_VERSION "5.5.6"
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ void ShowHelp()
" Ctrl-f jump to unread chat\n"
" Ctrl-g toggle show help bar\n"
" Ctrl-l toggle show contact list\n"
" Ctrl-n search contacts\n"
" Ctrl-n goto chat\n"
" Ctrl-p toggle show top bar\n"
" Ctrl-q quit\n"
" Ctrl-s insert emoji\n"
Expand All @@ -616,7 +616,7 @@ void ShowHelp()
" KeyUp select message\n"
" Alt-d delete/leave current chat\n"
" Alt-e external editor compose\n"
" Alt-n goto chat\n"
" Alt-n search contacts\n"
" Alt-t external telephone call\n"
" Alt-/ find in chat\n"
" Alt-? find next in chat\n"
Expand Down
6 changes: 3 additions & 3 deletions src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "January 2025" "nchat 5.5.5" "User Commands"
.TH NCHAT "1" "January 2025" "nchat 5.5.6" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down Expand Up @@ -62,7 +62,7 @@ Ctrl\-l
toggle show contact list
.TP
Ctrl\-n
search contacts
goto chat
.TP
Ctrl\-p
toggle show top bar
Expand Down Expand Up @@ -92,7 +92,7 @@ Alt\-e
external editor compose
.TP
Alt\-n
goto chat
search contacts
.TP
Alt\-t
external telephone call
Expand Down
6 changes: 3 additions & 3 deletions src/uihelpview.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// uihelpview.cpp
//
// Copyright (c) 2019-2024 Kristofer Berggren
// Copyright (c) 2019-2025 Kristofer Berggren
// All rights reserved.
//
// nchat is distributed under the MIT license, see LICENSE for details.
Expand Down Expand Up @@ -68,7 +68,7 @@ void UiHelpView::Draw()

AppendHelpItem("quit", "Quit", helpItems);
AppendHelpItem("select_emoji", "AddEmoji", helpItems);
AppendHelpItem("select_contact", "AddrBook", helpItems);
AppendHelpItem("goto_chat", "GotoChat", helpItems);
AppendHelpItem("transfer", "SendFile", helpItems);

return helpItems;
Expand All @@ -81,7 +81,7 @@ void UiHelpView::Draw()
AppendHelpItem("ext_call", "ExtCall", helpItems);
AppendHelpItem("find", "Find", helpItems);
AppendHelpItem("find_next", "FindNext", helpItems);
AppendHelpItem("goto_chat", "GotoChat", helpItems);
AppendHelpItem("select_contact", "AddrBook", helpItems);
AppendHelpItem("spell", "ExtSpell", helpItems);
AppendHelpItem("decrease_list_width", "DecListW", helpItems);
AppendHelpItem("increase_list_width", "IncListW", helpItems);
Expand Down
6 changes: 3 additions & 3 deletions src/uikeyconfig.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// uikeyconfig.cpp
//
// Copyright (c) 2019-2024 Kristofer Berggren
// Copyright (c) 2019-2025 Kristofer Berggren
// All rights reserved.
//
// nchat is distributed under the MIT license, see LICENSE for details.
Expand Down Expand Up @@ -244,9 +244,9 @@ void UiKeyConfig::Init(bool p_MapKeys)
{ "save", "KEY_CTRLR" },
{ "transfer", "KEY_CTRLT" },
{ "select_emoji", "KEY_CTRLS" },
{ "select_contact", "KEY_CTRLN" },
{ "select_contact", "\\33\\156" }, // alt/opt-n
{ "forward_msg", "\\33\\162" }, // alt/opt-r
{ "goto_chat", "\\33\\156" }, // alt/opt-n
{ "goto_chat", "KEY_CTRLN" },
{ "other_commands_help", "KEY_CTRLO" },
{ "decrease_list_width", "\\33\\54" }, // alt/opt-,
{ "increase_list_width", "\\33\\56" }, // alt/opt-.
Expand Down

0 comments on commit 325ece1

Please sign in to comment.