1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
irssi/TODO
Timo Sirainen 7bdd3beb8e Reorganized & updated.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2390 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-04 06:38:27 +00:00

541 lines
27 KiB
Plaintext

- TODO for .99:
- better support for !channels (don't log the ID, show nicer in whois,
layout save doesn't work)
- autoreconnect doesn't work after nick collision?
- jos gmodulea ei löydy niin huuda siitä configuressa
- update redirect_event() stuff in scripts/ dir!
- /LAST: Only one bug: separator is not used when -before is given (and no -after).
- ne mun /exec tailit jää päälle..
- Debian testing .debs are missing
- .debs for dcc-send-limiter
- fix the /beginner/ URL
- remove from code: FIXME: remove after .98
- lisää faqiin se /format timestamp
- ADD DEFAULT: /BIND meta-backspace delete_previous_word
- module_uniq_destroy() - those calls are probably wrong .. for CHANNEL and QUERY at least?
- update ICB protocol plugin to work with new send_message()
- mobile plugin doesn't work
- /UPGRADE:
- support DCCs
- write /HELP
- topic time/nick isn't transferred
- rewrite to work by fork()ing a new process and transfer file handles
with unix sockets. this would allow the scrollback buffers to be
transferred with them as well.
- current window layout needs to transferred
- reconnections aren't transferred(?)
- Logging:
- /LOG OPEN doesn't autocreate directories..
- /LOG OPEN -targets *!*cras@*.fi
- /SET autolog -> /LOG OPEN -targets * (internally, at least)
- /LOG OPEN shouldn't really open the file until first line is
written in it
- /WINDOW LOG OFF doesn't work
- autoclosing logs doesn't work too well. Problems are:
- after certain inactivity private message logs should be closed
- but DCC chats shouldn't be closed until the chat itself is closed
- which we can't know really currently, since they don't need
to be in queries
- channels should be closed when they're left
- /WINDOW CLOSE shouldn't close it immediately, since we'll still
receive at least the PART message
- so, log items should know more about what they are exactly, and when
they should be closed. private messages could have the same timeout
as now, time_t closetime field updated every time msg is received.
channels could do the same when receiving "window item destroy" signal,
except with a small timeout. DCC chats are more problematic...
- support for mirc/ansi color logging
- people want to show ignored stuff in logs.. how?
- private messages could show mirc-style "Session Ident: nick (host)"
which would update when nick's host changes. Then you wouldn't need to
print the host before each msg.
- Awaylogs:
- either fully support logging only in servers you're away, or change the
awaylog to open immediately after /AWAY command, not based on any
away replies from server. Maybe the later would be better, since you
would want to set yourself away when connections to all servers were
disconnected at the time.. Maybe /AWAY should update status in
reconnection records as well?..
- /SET awaylog_auto_delete, after setting yourself unaway
- support for using strftime() formats (and $tag etc). only problem with
this is that all the different awaylogs would need to be tracked and
/CATed when setting yourself unaway
- Window item placing:
- !channel vs. !12345channel. it's layout saved with full name, but joined
with either one
- when dcc chat is accepted and query exists from the same nick, replace
the query window with the dcc chat window.
- ASK what this means ;) Qrczak> If a window with a closed chat with that
person already exists, a new chat should reuse it.
- DCC
- /DCC SEND wildcard support
- /DCC GET -4 / -6 with autodetection
- When we receive a DCC SEND request, irssi could warn if the file
already exists
- show estimated time left and kB/s in /DCC list.
- implement requesting files with DCC GET from remote client for dcc file
servers. good for people behind firewalls. Does this feature exist
in other clients, or should I create DCC REQUEST? Same for DCC CHAT..
Maybe it could be just that the port was specified as 0, so the other
side would know that it needs to be the one to do listening.
- /SET dcc_autoresume ON, and sending the same file again while it's
already being downloaded doesn't work too well.. Even autorename doesn't
work.
- With fast DCC SENDs (90kB/s, FreeBSD) typing get laggy (really?)
- /DCC CLOSE #, /DCC would print the IDs
- Generic chat commands:
- /MSG /CTCP /ACTION =dcc_chat,#channel
- /ACTION -ircnet with good tab support like in /MSG
- -nick -channel parameters to /ACTION
- /MSG a,b,#c,#d - it should print the message to #c and #d channel
windows and show only "a,b" as target when printing it to msg window..
Or if autoquery is set, it should print them to those windows. Hmm.
maybe some multipeople query support? :) /query nick1,nick2 and sending
text there would send it to both. Seems to work already but receiving
messages from either nick1 or nick2 don't go to that window..
- /^MSG nick creates query with /SET qutocreate_own_query YES
- /WHOIS -servertag
- Netsplits
- BUG: said "+1 more", while the /SETs to control that were set properly,
with one guy it only said that +1 more..
- BUG: netsplit quit isn't printed if quit -> join -> quit -> join
happens fast (really?)
- maybe the "+x more" should be configured in theme file instead in
future with the embedded scripting.. At least I'd want to print all
the splitted nicks in log files.
- per-window listing of splitted servers, it looks very stupid when
you see 4 lines of servers splitting in each window but only a few
nicks after them.
- per-window listing of splitted nicks, so the split messages isn't shown
multiple times for each channel with possibly same nicks
- /NETSPLIT <server>|<#channel>|<nick wildcard>
- SERVERMODE +ov nick nick is shown instead of just Netjoin @nick because
code is stupid. fixed in irssi-rewrite..
- Statusbar:
- BUG: Position setting with having 2+ top-root-bars isn't working
- BUG: With statusbar scripts loaded, and irssi changing prompt at startup
(eg. "remove unknown settigs?"), irssi might print some glib errors
about missing prompt (couldn't reproduce those) and hides the prompt.
- /STATUSBAR command..
- /SET theme doesn't update statusbar colors
- Crashes:
- perl on moduulina niin kaatuu quitissa
- #1 0x68cc7 in module_file_deinit_gmodule (file=0x110e20) at modules-load.c:356
- <dg> i've managed to reproduce the bug, if i make three split windows (/window show 3..5), then set the windows to not be sticky and go to one of the windows, then alt+number to another window then go back the other window the display prints two windows in the same window
- irssi -cserver -nnick -> crashes - lib-popt is buggy!
- bug as well but not crash: --config=foo --home=bar -c server
- /SB CLEAR still crashing sometimes?
- make sure irssi works with 0x0 sized terminal. 1x1 sized terminal
doesn't work if we use recreate_windows()
- /UNLOAD dcc, etc. static modules
- Scripts:
- print whois in active window
- some script to handle ctcp floods, like doing /IGNORE * CTCPS when it
happens.
- move into scripts:
- /SET timestamp_timeout
- /MSG completion list should be modifyable from scripts
- script to remove nick from list after /IGNORE nick
- nick completion list should be modifyable afterwards:
- /SET completion_nicks_lowercase (remove from irssi)
- /SET completion_nicks_capitalize
- /SET completion_nicks_strip (keep only alphanumeric chars)
- irchat-like JOIN/PART/QUIT combiner (QUIT: nick1, nick2, nick3), would
require the line replacing work properly which it doesn't..
- Irssi proxy:
- doesn't propagate your own nickchanges to other clients
- better support for CTCP replies / DCC
- Misc IRC related things:
- support for mode +q in dancer - also same as +b %xxx modes..
- properly support RFC-1459 charset (ircnet specific option), eg.
/QUERY p[ and msgs from p{ aren't placed there.
- /BAN -ip, -time [<time>] (/ALIAS knockout?)
- /KICKBAN to support same options than /BAN (would /ALIAS kickban work?)
- ban list prints "x seconds ago" .. should be x days, mins, hours, ..
- windows:
- /WINDOW SIZE -sticky, so f.e. /WINDOW BALANCE wouldn't affect it.
- /LAYOUT save|reset doesn't affect anything immediately, only after
restart
- Check that /LAYOUT SAVE works properly with all the different /SETs,
like reuse_unsued_windows, windows_auto_renumber and autoclose_windows.
What should it do if some channel is /PARTed with autoclose_windows
set?..
- /LAYOUT SAVE should ask if we want to save those window items that
are "bound sticky" but of which server is currently not connected.
- /WINDOW scrollback_lines /WINDOW scrollback_hours
- Optionally always start the lines from bottom of the screen when
screen is empty (how would scrolling work?)
- Vertically split windows
- Keyboard handling:
- Some kind of state support for it, so it would be possible to make
support for vi keys easily.
- Editor-like (or bash-like) line editor - it would wrap to next line
instead of scrolling.
- When pasting text, irssi could notice it and ask "pasting 30 lines
of text, ok?" .. Could send some signal that sends the pasted lines
in GList which signal handlers could modify. Also the first pasted
line could be somehow buffered so that it isn't sent immediately
so these paste handlers could modify it too.
- Already existing / at start of line handler should use this
- Automatically remove empty space at the start/end of lines,
from start of line it would work so that if each line begins with
4 spaces but some more, it would only remove those 4 spaces from
each so pasting code wouldn't mess up indents etc.
- Skip all autoreplaces and completions, so that f.e. tabs are
printed as-is
- Should empty lines be pasted too? Maybe optionally
- /BIND -askkey command
- /BIND -delete doesn't print that it did the deleting
- /BIND -deletes should be saved in config
- ^W (and some others) don't update cut buffer.
- default binds: M-d, M-t, M-y
- UTF-8 support
- /PASSWORD command that asks you to type the password to entry line and
would hide it with asterisks, good if people spy on you :)
- ^R-like history search
- Notify list:
- showing who's online and who's offline doesn't work properly.
- adding/removing people in notify list don't show in /NOTIFY immediately
- when someone in notify list joins, should it be placed to start of
/MSG completion list?
- /NOTIFY -away and -idle: support for wildcards in nicks (requires of
course that we're in same channel as nick)
- Automatically add queried nicks to notify list temporarily .. display
the notifys for the nick in the query window
- /NOTIFY -once - notify only once when the user comes to IRC, forget
this after it.
- /NOTIFY -comment xxx - add a comment to notify. print the comment when
user comes to irc.
- "Should we check people in notify list when you're away" option
- Ignores:
- /IGNORE -ircnet
- /IGNORE <nick> -> use hostmasking (related to channel syncing problem,
see "bigger code changes") with support for -type and /SET ignore_type
- /IGNORE -strip -pattern away * actions ..
- can't have multiple ignore -patterns with same nick
- /ignore -activity .. would ignore it just in window activity list,
not hide the text.
- The nick cache stuff just made it slower. Remove it or figure out how
it could be faster.
- Hilights:
- /HILIGHT list doesn't print several options. Maybe some generic
function which could be used for printing those options for all these
/IRCNET, /SERVER ADD, etc. commands.
- /HILIGHT -mask <mask> <word>: not possible use both.
- case sensitive hilight checking.
- ignore coloring in the words it matches, so eg. /hilight foo would
match to f^Bo^Bo
- BUG: it STILL sometimes creates hilight activity while there's no
hilights, around mode changes (haven't heard for a while though,
maybe it is anyway fixed? :)
- change the colors of both the nick and the matched word.
- /SET hide_text_style still breaks /HILIGHT -words
- even if hilight_color is "", %n is printed after hilighted text.
- /hilight -actcolor %M -color %w -regexp -level publics
-channels #channel1,#channel2 .*
removes the bold from /me actions of other users
- people want to hilight their own nicks everywhere, eg. /HILIGHT $N
- automatic nick hilighting at beginning of line should be optional,
like some people would want -word hilighting in it..
- Scrollback:
- Optionally show a "bookmark" (line mark actually, a line full of '-'
chars) in a window. It would be displayed at the position where you
were when the window was active last time. /MARK command to force
updating it to bottom of screen in active window.
- /SCROLLBACK REDRAW doesn't do anything to non-format lines (should
redraw timestamp, etc.)
- /LAST -since <timestamp>
- /LAST : use /SET timestamp_format
- /SCROLLBACK CLEAR all -public - a bit like /LAST -clear
(make /LAST -clear do /SB CLEAR lastlog)
- Formats / themes:
- scripting for formats (see the themes.txt), and make the default.theme
so that you REALLY don't need to touch /FORMATs, unless you want to
change english texts (eg. joins/parts/quits etc. are fully configurable
in theme file)
- Possibility to modify abstracts and replaces in themes from irssi.
(or maybe not, just makes it more difficult)
- Document the different formats briefly :)
- /FORMATs don't have styling anymore, so translation to different
languages should be possible with still the ability to use different
themes easily. /SET formats <filename> could change the file where
to read all /FORMATs, but formats in theme file would override them.
- terminfo/termcap supports changing palette. add support for themes
as well to specify it.
- hilight formats. pubaction_hilight would be nice, but so would many
others as well. something generic for all these would be nice .. would
it be possible to do this in theme side with scripting without a
format for each different thing?
- Server commands:
- Optionally wait for a while (0.5-1sec) before sending the message to
server, if arrow up key is pressed abort it. Also remove the line from
screen and put some notice about it being not sent.
- If we receive "cannot send to channel" from server or "you're not
chanop" events, remove the privmsgs/notices or modes/kicks/etc. from
send queue automatically. Useful for aborting things when you get
kicked after pasting lots of text or deopped after doing /OP * or
something ;) .. use /SERVER PURGE <target> for this..
- Split PRIVMSGs and NOTICEs automatically to multiple commands if
their length exceeds the 512 bytes (or it should be shorter actually
so server won't split it when it adds your nick+host mask)
- Fix the flood protection to be aware of max. input buffer, which is
1024 bytes by default (/STATS d, CF). Now irssi may excess flood when
sending lots of lines longer than ~200 chars.
- Text buffer:
- support for printing ALL characters in text buffer, including ^B, ^C,
etc. etc. so we could selectively decide what mirc colors to translate
and what not. Like, we would want to show (or hide) it in normal
messages, but we would want to show it as-is in user's ident and
ban lists. This should fix /HILIGHT -word as well.
- EPIC-like /SET mangle_inbound, maybe mangle_outbound?
- %> should work in normal text lines
- support for iso-2022-jp? does anyone even want this? ;) it works with
esc$B..encoded text...esc(B - encoded text is in 7bit chars, not sure
- fix the textbuffer code so that typofix.pl actually works
- if you're in beginning of scrollback when lines are being removed,
the screen is messed up (?). Also, after /SB END the --more-- is
still there and you can't get rid of it (couldn't reproduce)
- does /SB REFRESH work? Make it update the lines lazily, only when
needed so it would be fast.
- Make /SET HOLD_MODE
- /CAT should pause on every screenful of text, this should be some kind
of printtext_multiline_paused() function which would use some callback
to ask for new text.
- when scrolling, using pgup/down. it would be neat if the last/first
overlapping line in the newly redrawn buffer would be colorized for a
second or two, indicating where to continue reading
- server connecting:
- More verbose connecting
- show if we're using IPv4 or IPv6
- show hostname we're using
- show the proxy settings we're using
- Reconnecting shouldn't try to remember all those settings, especially
/SET real_name xx + /RECONNECT should work.
- DNS problems may cause removal of i-line, irssi shouldn't stop
trying to reconnect the server if it happens.. Maybe it never should
stop reconnecting to servers that are in config.
- /RECONNECT <servertag> - If <servertag> belongs to some IRC network,
reconnect to next server in that ircnet, otherwise just reconnect
to the server.
- /SERVER <number> would connect to n'th server in list. Show the
numbers with /SERVER LIST
- /CONNECT <ircnet> could remove existing ircnet connection from
reconnect queue if it exists (only if there's only one?). Also if
we're already connected to the ircnet it could complain about it
and -yes would force it.
- Tab completion:
- Command parameter completion doesn't work properly when -options
are used.
- Possibility to complete -option parameters? Like -ircnet <tab>, also
/MSG -servertag<tab> and /LAST -level<tab> should work. All of these
require some command definition changes..
- bash-style (or whatever it should be called) tab-completion
- key for reverse completion
- /MSG <tab> completion shouldn't include queried nick there (optional)
- nick completion shouldn't try completing nicks everywhere,
like /SET <tab>
- File completion could guess when it's wanted, word beginning with /
(not at start of line of course, unless / isn't in cmdchars)
or ~/ or ./
- Modules:
- Figure out module vs. plugin wording, what is what ;)
- API for plugins which would be guaranteed not to change
(at least too much/too often :)
- "chat protocol modules" - they could be loaded at startup so they'd be
equal to IRC protocol (autoconnecting servers would work etc.)
- on-demand autoload modules (f.e. by /command or maybe some signal)
- Try to make them create only .so files instead of .a and all..
- dependencies for modules? double /[un]load prints a bit stupid text
- perl scripting:
- /LOAD [-script | -module], /UNLOAD script
- Possibility to modify entry line somehow
- Add structures: MODULE_REC, THEME_REC, KEYINFO_REC,
CHAT_PROTOCOL_REC, etc.
- signal_emit() - if emitting unknown signal, it could automatically
save the types of sent parameters so another perl script could
signal_add() it (done already?)
- Irssi::keyboard_entry_redirect()
- Irssi::format_get_text()
- "use Symbol(delete_package)" doesn't work with perl 5.004 and crashes
irssi .. at least remove the crashing!
- Irssi::signal_remove() could accept hashes
- Bigger code changes:
- Restructure code tree so that non-IRC chat protocols would be in
same places than IRC protocol. Something like:
- src/irc (like now)
- src/irc/fe-common, src/irc/fe-text
SILC could then make symlinks to src/silc to whereever the SILC
module was unpacked. Make it possible to build SILC support built-in.
- /SETs have now boolean/number/string types. Add more:
- Time: Allow to use s|m|h|d to specify the time, default to
seconds. When sending reply to user, use the time formatting too,
not just x seconds or minutes. "10d 5s" should also work.
- Level: Like "all -msgs -public". Complain about unknown strings.
- size: 5M, 5k, ..
- Reading configuration file should be changed somehow .. at least add
some helper functions for reading lists since comments inside them
now crash irssi. Also if setting wasn't expected type can cause
crashes so add proper error checkings everywhere. And is_node_list()
etc. should be in uppercase..
- Would this work..? : command_bind() could specify the parameters
it uses, then some generic command parser could parse the commands
and options and if all is ok, send the parsed parameters directly with
signal_emit() .. I'm just thinking some type checking problems but
if all commands would be in format SERVER_REC, WI_ITEM_REC,
GHashTable *options, char ** (NULL terminated parameters list) .. ?
- Channel syncing is evil. Make it optional, and use /USERHOST when
needed if host isn't known. /BAN at least should do this, and while
at it, we could make /IGNORE as well to ignore based on mask.
- Irssi saves some setting strings to static const char * variables in
several places.. this works pretty well usually, except when /RELOADing
config and some "setup changed" signal handler goes and calls some
function that still uses the old saved string which points to free'd
memory.. this should somehow be fixed failsafe. maybe just g_strdup()
them everywhere or figure out something better..
- handle /JOINs with server redirections so they get aborted if we're not
seing a JOIN for a while.
- make sure the config file is never lost, write it to some temp file first
and after then move it over real config file.
- you could configure which events (whois, notify, etc.) to show in what
windows (all, current, status, msgs)
- /SET -reset?
- printnickmsg() which would print nick changes and quit messages. And
export that function to perl so kills.pl could print kills with it too.
- regexp host masks
- automatically switch to status window when using commands that always
print their output to status window, like /whois.
- automatic whowas if whois wasn't found should be moved to fe-common.
it could also print something like "nick $0 not in IRC, but this user
WAS in IRC:"
- Add command for changing automatic replaces and completions
(/autoreplace, /complete ?) .. could these be scripts? ..
- commands to move channels and servers in the config list, to set the
join/connect order of them.
- All those options to /WHO and /LIST commands that EPIC has
- nick/channel lists at right side of the text version of irssi. Ctrl-N
for example could hide/show them. add mouse support for it.
- try profiling the code with /cat filewith10000lines
- /JOIN #foo could *optionally* move the channel to active window
(default off, it confuses people)
- /SERVER ADD -ircnet foonet bar 6000 pass1,
/SERVER ADD -ircnet barnet bar 6000 pass2
dircproxy identifies ircnets based on password
- $@0 always returns 4 (?)
- HÄMÄRÄT BUGIT:
( - /win new hide, /win new, /win down, /win close -> crash ?)
- active_mainwin oli jotenkin NULL ja kaatoi.. /window killi teki sen,
liittyy varmaan jotenkin siihen että window_close() vaihtoi samaan
hiddenikkunaan splitti-ikkunan sisällä jota oltiin kuitenkin tappamassa
kun se ei ollut sticky..
*** GTK UI
- %| doesn't work with irssi text widget
- some problems when using multiple windows with focus being all the time in
one of the windows and it can't be changed to different window?! Probably
has something to do with click to focus.
- split windows are buggy, destroying them doesn't really work well..
- mirc ctcp togglemenuitem isn't updated right
*** Big things
- some sort of address book? our own irssi ctcp to ask for other irssi users
for their information (of course not without asking (except optionally))..
could be nice also to automatically update it, keep track of all seen
users gathered when joining channels, whois, who, etc. commands.
automatically updating information could be host masks, nicks, ips, seen in
channels, operator in channels, .. user specified checks like last topic or
mode changes or even msgs to you/some channel/with some keyword. great for
spying people ;) maybe even useful sometimes..
.. but what database would be best for this?
- GTK (non-GNOME) version: icons to toolbars, accelerators to menus
- Windows style MDI windows are possible with GtkFixed .. Some people would
like this.. too much job for me, it would need building the MDI windows
ourself (title bar, borders, resizing, etc.)
- online help, documentation, ...
- plugins:
- scheme, tcl, python scripting? eggdrop/epic compatible scripting?
- IRC bot, eggdrop is too old, needs a replacement ;) (started, aborted)
- Multiplayer games! :) Chess, tic-tac-toe, othello, battleship, tetris,
etc. Existing games should probably be used .. though there doesn't
seem to be any of these (except tetris) for gnome right now..
- audio / video chat :)
*** Needs rethinking ..
* Notify list GUI
- _one_ popup dialog could open which lists all nicks in notifylist, maybe
sorted by arrival time, display the dates, latest joined could be with
different color? etc.
- nick-specific options:
- pop up the dialog
- run some command (like /exec as soon as I get that done :)
* common api for statusbar handling
- it should work just as well in text mode and gui, colors could be done
with the normal % formats. GUI just ignores the colors..
- display number of ops, voices, normals and ircops in statusbar
* API for creating/modifying menus and toolbar, especially from plugins
- at least one configurable menu ("usermenu"), or maybe make the whole
menubar user configurable
*** ..in GTK UI .. just some things to remember if i'll rewrite it again.
- itext:
- save/find text
- text selection draws the entire selection every time you move the
mouse...
- if some other window has got much text, switching to it first time
takes some time..?
- editor in setup for ~/.irssi/startup
- dcc floods could pop up lots of dialogs..
- gui help
- change signal handling in gui-gnome so that the actual drawing and
functionality are in different signals, so that plugin could change the
whole look and feel of irssi.
- currently irssi sends USERHOST commands every now and then to find out
who are away and who are not.. optionally it could instead just watch if
someone hasn't written anything to channel in n minutes and mark it "away"
to nicklist.
- check new irssi versions with http rather than with irssibot..
- gnome statubar:
- clock?
- dcc transfer meter (gtk progressbar)
- dcc send: allow selection of multiple files to send (also for dnd from
gmc!) Allow dropping files to anywhere in irssi.