1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
Commit Graph

2334 Commits

Author SHA1 Message Date
James Booth
22b92c7514 Used g_hash_table_destroy to free logs 2015-02-10 19:53:34 +00:00
James Booth
75d7663876 Free wins summary list 2015-02-10 19:42:13 +00:00
James Booth
30739ed157 Free contact list 2015-02-10 19:39:18 +00:00
James Booth
6bee6cb0fb Free string on backspace 2015-02-10 19:30:18 +00:00
Olivier LE MOAL
48f9f3b3b0 Add XEP-0280 support 2015-02-10 11:32:22 +01:00
James Booth
64774a947e Merge branch 'master' into readline 2015-02-09 22:11:25 +00:00
James Booth
5c9dd2802a Free lists on get muc and private windows 2015-02-09 22:08:47 +00:00
James Booth
a9c69670fa Free filtered lists for who command 2015-02-09 22:03:17 +00:00
James Booth
38e6dc0e85 Free expected_node for legacy caps 2015-02-09 21:59:17 +00:00
James Booth
75f791da8f Free hash table keys before modifying hash table 2015-02-09 21:53:55 +00:00
James Booth
1a98f1404b Free resource lists 2015-02-09 21:46:54 +00:00
James Booth
50601d4db3 Removed strdup calls when creating capabilities 2015-02-09 21:36:04 +00:00
James Booth
51ccb69580 Merge branch 'master' into readline
Conflicts:
	src/ui/inputwin.c
2015-02-09 21:28:08 +00:00
James Booth
6682f243ce Free theme list after use 2015-02-09 21:21:22 +00:00
James Booth
aad7b3ed8a Free GTimer on switch to console 2015-02-09 20:15:24 +00:00
James Booth
893b58bf4e Use chat_state_free to free chat states 2015-02-09 20:11:51 +00:00
James Booth
23aaa51a2a Free utf8 substrings for delete word (ctrl-w) 2015-02-09 19:59:04 +00:00
James Booth
268c33e1c6 Free resource lists on /account command 2015-02-09 19:50:41 +00:00
James Booth
916ee1dc13 Merge remote-tracking branch 'stormc/readline-clrscr' into readline 2015-02-08 21:35:19 +00:00
James Booth
8cec79faef Merge branch 'master' into readline 2015-02-08 21:03:26 +00:00
James Booth
44c5b34a71 Moved quote stripper to common, added tests 2015-02-08 20:59:51 +00:00
James Booth
236e508cd8 Merge remote-tracking branch 'peterlvilim/quote-chars'
Conflicts:
	src/command/command.c
2015-02-08 20:34:20 +00:00
Christian Storm
916a3d9451 Bind ^L to own clear method to retain ui elements
When using readline's standard ^L binding, the screen
is completely cleared, including status and title bar.
By binding ^L to profanity's clear method, status and
title bar are retained.
2015-02-08 12:15:01 +01:00
James Booth
129af0eafd Merge branch 'master' into readline 2015-02-08 00:46:55 +00:00
James Booth
e0dfe4832b Added code to generate HTML command reference for website 2015-02-08 00:42:21 +00:00
James Booth
b7a8e7d942 Merge branch 'master' into readline 2015-02-06 22:05:38 +00:00
James Booth
bec95afc8b Removed strdup passed to autocompleter 2015-02-06 22:03:40 +00:00
James Booth
8977c9c721 Removed duplicate time_ac 2015-02-06 21:40:35 +00:00
James Booth
f447ac4189 Free win layout 2015-02-06 21:39:53 +00:00
James Booth
f08657fa9a Handle home scroll 2015-02-06 14:11:21 +00:00
James Booth
2e83d23873 Removed unused function 2015-02-06 00:20:06 +00:00
James Booth
113cb6cf9a Removed debug logging 2015-02-05 01:00:06 +00:00
James Booth
a70aa0255f Moved command processing to main loop, allow resize during password prompt 2015-02-05 00:58:23 +00:00
James Booth
30180ac8bb Move SIGWINCH handling to ui/core.c, ignore signal whilst resizing 2015-02-04 23:35:28 +00:00
James Booth
d64c4a69d7 Removed unused functions from inputwin.c 2015-02-04 22:22:18 +00:00
James Booth
b2536e91c0 Fixed input timout returning EINVAL on OSX 2015-02-04 01:04:56 +00:00
James Booth
7ab301869f Moved readline startup hook 2015-02-03 23:27:06 +00:00
James Booth
8b58eb68d3 Tidied inputwin.c 2015-02-03 23:07:15 +00:00
James Booth
af345b6700 Updated navigation help 2015-02-03 22:24:47 +00:00
James Booth
82ddbf332d Added OSX readline keyseq bindings 2015-02-03 21:38:48 +00:00
James Booth
b76501f0bc Removed mbstate_t use 2015-02-03 21:08:34 +00:00
James Booth
836fdd2eb1 Remove state passed to wide char len check 2015-02-03 21:04:51 +00:00
Olivier LE MOAL
62c1a59f38 Add /carbons in /help settings 2015-02-03 18:19:04 +01:00
Olivier LE MOAL
a89e04b9d5 Fix help for message carbons 2015-02-03 15:48:19 +01:00
Olivier LE MOAL
2a12a4d93b Add preference/commands for carbons message 2015-02-03 15:27:56 +01:00
James Booth
1c157b04df Fixed arrow keys with debug 2015-02-02 23:17:47 +00:00
James Booth
5954c0d2fe Readline osx compatibility 2015-02-02 21:27:58 +00:00
Olivier LE MOAL
e3feacddd6 Add XEP-0280 support 2015-02-02 11:10:05 +01:00
James Booth
51a5426006 Added include for timeval struct 2015-02-01 21:01:00 +00:00
James Booth
372cf822cb Merge branch 'master' into readline 2015-02-01 20:47:28 +00:00
James Booth
702ea0b5f3 Use getc wrapper for autocomplete reset check 2015-02-01 20:14:07 +00:00
James Booth
a9af8785a7 Added more ignore characters to handle activity 2015-02-01 00:35:42 +00:00
James Booth
e8b6c505cb Handle word wrapping wide chars 2015-02-01 00:14:11 +00:00
James Booth
a19c0a5989 Added scroll handler 2015-01-31 22:29:44 +00:00
James Booth
84688c063e Removed commented code, renamed win switch handlers 2015-01-31 22:12:27 +00:00
James Booth
baa122e7dc Added function key bindings 2015-01-31 22:08:00 +00:00
James Booth
28dd545877 Added paging handlers 2015-01-31 22:00:22 +00:00
James Booth
e6f27de552 Added SIGWINCH handler 2015-01-31 18:02:42 +00:00
James Booth
fe10f2b2e3 Clear autocompleters on printable chars 2015-01-31 16:51:09 +00:00
James Booth
2b11baa564 Added readline tab handler 2015-01-31 01:58:15 +00:00
James Booth
b3448eb265 Moved input blocking code to inputwin.c 2015-01-31 01:11:41 +00:00
James Booth
e161337b7f Debug input block 2015-01-31 00:31:08 +00:00
James Booth
f94b6ef0a2 Added idle and activity handlers 2015-01-31 00:20:25 +00:00
James Booth
1cf5592b1f Removed unused variables 2015-01-30 23:46:34 +00:00
James Booth
784a2ea862 Removed commented code 2015-01-30 23:44:17 +00:00
James Booth
a9ed64911d Removed history and various key handlers 2015-01-30 23:42:51 +00:00
James Booth
83bd207316 Moved readline code to inputwin.c 2015-01-30 23:28:02 +00:00
James Booth
5b26879e31 Updated /wrap help 2015-01-28 20:59:25 +00:00
James Booth
351ff752a7 Renamed command group presence->presences to avoid clash 2015-01-28 20:35:00 +00:00
James Booth
ec28888915 Strip only trailing newline from eval_password 2015-01-28 19:50:16 +00:00
James Booth
6529220351 Strip leading/trailing whitespace from result of eval_password
fixes #495
2015-01-28 00:52:10 +00:00
James Booth
9800a46adb Fixed compile error when no OTR support 2015-01-28 00:04:37 +00:00
James Booth
2cdbfc7eb7 Added gnu readline 2015-01-27 22:13:09 +00:00
James Booth
25d31101bf Added key insert tests, extracted key_ctrl_left handler 2015-01-20 23:02:04 +00:00
James Booth
2ed78fe5af Extracted keyhandler for printable characters 2015-01-20 00:09:47 +00:00
James Booth
0e8092afef Inlined static functions in inputwin 2015-01-19 20:51:41 +00:00
James Booth
9ecdb39433 Refactor inputwin.c 2015-01-18 22:55:51 +00:00
James Booth
8954adc620 Handle wide chars for arrow keys and backspace 2015-01-18 19:55:48 +00:00
James Booth
89260280d1 Fix backspace for utf8 wide chars 2015-01-17 22:03:22 +00:00
James Booth
ba89297382 Added utf8_display_len 2015-01-17 21:09:40 +00:00
James Booth
4ac11ddcd6 Merge branch 'master' into inp-utf8 2015-01-16 23:39:34 +00:00
James Booth
036d13b80c Removed debug 2015-01-16 23:38:21 +00:00
James Booth
18f05c59ee Fixed merge 2015-01-16 23:35:31 +00:00
James Booth
8805fd5c38 Merge branch 'master' into inp-utf8
Conflicts:
	src/ui/inputwin.c
2015-01-16 23:34:32 +00:00
James Booth
e1db13ea2b Renamed input variables 2015-01-16 23:32:57 +00:00
James Booth
972d524fdc Merge branch 'master' into inp-utf8 2015-01-16 23:12:00 +00:00
James Booth
4c6cfcdca0 Simplified autocompleters and command history 2015-01-16 22:50:40 +00:00
James Booth
9fad03af74 Merge branch 'master' into inp-utf8
Conflicts:
	src/ui/inputwin.c
2015-01-16 00:41:02 +00:00
James Booth
7a5deca77c Removed static function arguments in inputwin.c 2015-01-16 00:36:42 +00:00
James Booth
f0ffc31cd6 Renamed inp_get_char->inp_read 2015-01-15 23:46:54 +00:00
James Booth
9083bfdb5c Merge branch 'master' into inp-utf8
Conflicts:
	src/ui/inputwin.c
2015-01-15 23:45:18 +00:00
James Booth
51105720ab Moved input line to inputwin 2015-01-15 23:43:22 +00:00
James Booth
bb11dc0973 Merge branch 'master' into inp-utf8
Conflicts:
	src/ui/inputwin.c
2015-01-15 23:31:06 +00:00
James Booth
65fc4bcd9f Pass pointers to inp_get_char 2015-01-15 23:29:48 +00:00
James Booth
22e9be4a5f Renamed input->line 2015-01-15 22:55:54 +00:00
James Booth
e326aaa84f Merge branch 'master' into inp-utf8
Conflicts:
	src/ui/inputwin.c
2015-01-15 22:53:50 +00:00
James Booth
ad896ef201 Moved input size to inputwin 2015-01-15 22:51:05 +00:00
James Booth
173a3a82bb Merge branch 'master' into inp-utf8 2015-01-15 22:25:15 +00:00
James Booth
82c986775d Moved input to ui module, renamed ui_readline 2015-01-15 22:21:24 +00:00
James Booth
2efb2fef50 Merge branch 'master' into inp-utf8 2015-01-15 20:49:07 +00:00
James Booth
b43252a6b3 Tidy main loop 2015-01-15 20:46:15 +00:00
James Booth
60c0b9f63d Merge branch 'master' into inp-utf8 2015-01-15 20:39:57 +00:00
James Booth
3656c78217 Moved process_input to cmd_process_input 2015-01-15 20:34:45 +00:00
James Booth
a7dff070a4 Merge branch 'master' into inp-utf8 2015-01-15 13:31:13 +00:00
James Booth
5be47cc5a9 Moved input size variable to ui module 2015-01-15 13:22:54 +00:00
James Booth
6beeec03d4 Merge branch 'master' into inp-utf8 2015-01-15 01:31:23 +00:00
James Booth
40f91de7a3 Moved string termination out of main loop 2015-01-15 01:27:24 +00:00
James Booth
aec1484806 Removed ch from main loop 2015-01-15 01:21:24 +00:00
James Booth
78bfd8da40 Merge branch 'master' into inp-utf8 2015-01-15 01:06:33 +00:00
James Booth
3b69ad7b61 Tidy profanity.c 2015-01-15 00:56:17 +00:00
James Booth
0007e3569e Moved remimder notification code out of main loop 2015-01-15 00:42:40 +00:00
James Booth
a1bbe07b4b Renamed notify remind timer 2015-01-15 00:26:59 +00:00
James Booth
17b966adb4 Merge branch 'master' into inp-utf8 2015-01-15 00:19:22 +00:00
James Booth
97aebb6113 Moved win_handle_page to window module 2015-01-15 00:14:12 +00:00
James Booth
db9a2cf0ab Inlined ui_handle_special_keys 2015-01-15 00:02:42 +00:00
James Booth
3984c660b6 Removed result from main loop 2015-01-14 23:57:45 +00:00
James Booth
a6160d52c6 Pass value rather than address of ch during main loop 2015-01-14 23:54:46 +00:00
Peter Vilim
7e8ab90d39 Strip quote chars from name autocomplete 2015-01-14 17:22:32 -06:00
James Booth
41b2b1c51f Calculate input win display size includes wide characters 2015-01-14 23:17:10 +00:00
James Booth
ee14e8d05e Merge remote-tracking branch 'incertia/fixleak' 2015-01-14 22:02:45 +00:00
James Booth
5cf7ef0b4f Don't free default account name until it has been lowercased 2015-01-14 21:52:13 +00:00
Will Song
dc43cc602c
fix yet another potential leak 2015-01-14 11:10:14 -06:00
Simon Effenberg
6f55d06e2b fix the fix (memory leak)
the "fix a potential leak" from Will Song is not fully addressing the
issue.. so now the "def" variable should definitely being freed
2015-01-14 08:18:52 +01:00
James Booth
e19d57779f Fixed segfault on eval_password due to moving popen call 2015-01-14 00:35:31 +00:00
Will Song
1264265691
fix a potential leak 2015-01-12 23:00:03 -06:00
Will Song
b1f79b9d35
add a memory check just in case 2015-01-12 22:51:00 -06:00
Will Song
b6536ddf88
fix tests 2015-01-12 22:39:12 -06:00
Will Song
c2758616d8
eval_password code is now in cmd_connect so that it can be changed
without clearing it. eval_password errors are also now ignored, along
with pclosing the popened eval_password.
2015-01-12 22:23:36 -06:00
James Booth
274d6e843e Show eval_password if exists on /account show 2015-01-13 00:51:21 +00:00
James Booth
a932998fb1 Removed unused include, free eval_password 2015-01-13 00:43:17 +00:00
James Booth
21f8b1c4ca Merge remote-tracking branch 'peterlvilim/keyring' 2015-01-13 00:41:56 +00:00
James Booth
a39ac6cd07 Merge remote-tracking branch 'savar/dynamic_input_block' 2015-01-12 23:41:15 +00:00
Simon Effenberg
34148e2101 adding preference option for dynamic input blocking
/inpblock is now having subcommands 'timeout' and 'dynamic'
with:

/inpblock timeout <milliseconds>

and

/inpblock dynamic <on|off>

Defaults are:

/inpblock timeout 500
/inpblock dynamic on

To get the old behavior specify:

/inpblock timeout 20
/inpblock dynamic off

The dynamic mode will block incrementally after something
should be written to the window or after a key was pressed. So pressing
a key would set the timeout to 0ms and after 10 timeouts to the next
bigger one.

Example (with dynamic mode on):

"/inpblock timeout 50"

timeout series:

10x 0ms
10x 10ms (0ms + 10 times since last keypress)
10x 30ms (10ms + 20 times since last keypress)
*x50ms until next key was pressed or
2015-01-12 11:32:32 +01:00
Simon Effenberg
c7ff3255b8 trying to block (and save cpu power) more dynamically
instead of blocking too long if inpblock is set to something like
500ms the input timeout is not set directly to inpblock but is
increasing dynamically from 0 to inpblock by a little algorithm

FIXME: the call from the win_* method to the ui_input_* method looks
wrong.. this causes a cross reference which shouldn't be
2015-01-12 08:08:07 +01:00
James Booth
0d0ed9b7ca Merge remote-tracking branch 'incertia/exit-title'
Conflicts:
	src/command/command.c
	src/config/preferences.c
	src/config/preferences.h
2015-01-12 01:12:42 +00:00
James Booth
c64484c6ed Renamed titlebar preference 2015-01-12 00:43:42 +00:00
James Booth
f2728096ea Use /gone preference 2015-01-11 23:25:50 +00:00
James Booth
13f0166aa0 Only show UI events for chat states when in session 2015-01-11 23:04:22 +00:00
James Booth
c16871d143 Added remaining chat states 2015-01-11 20:20:17 +00:00
James Booth
76bd2ec13f Send active chat state, handle composing and gone from recipients 2015-01-10 22:03:40 +00:00
James Booth
965e82b350 Added resource override for chat sessions 2015-01-10 21:07:40 +00:00
James Booth
7256e49396 Merge branch 'master' into chat-sessions 2015-01-10 19:23:59 +00:00
James Booth
c77a731cf0 Added comments to preferences module 2015-01-10 19:22:38 +00:00
James Booth
31c0f2ba78 Added preferences for showing resource in titlebar and messages 2015-01-10 19:10:10 +00:00
James Booth
c3ad3c0ba6 Show resource in titlebar and on each message 2015-01-10 18:35:59 +00:00
James Booth
3e1832b02e Renamed resource -> resource_override 2015-01-10 18:17:10 +00:00
James Booth
9bd2315d83 Fixed chat session tests 2015-01-10 00:25:27 +00:00
Will Song
e57fa1633a add exit title preference to group and add command for setting the preference 2015-01-08 10:18:29 -06:00
Will Song
22a8d7a8a3
check preferences before printing exit title 2015-01-08 10:06:39 -06:00
Will Song
89aaaddfbb Merge remote-tracking branch 'upstream/master' into exit-title 2015-01-08 10:03:15 -06:00