| View previous topic :: View next topic |
| Author |
Message |
Zonbidesu
Joined: 14 Jan 2009 Posts: 28
|
Posted: Sat Mar 28, 2009 10:21 pm Post subject: Log entered commands? |
|
|
Can I log all commands that I entered, and only them?
I want to log all commands that I type for one session, then load each word up into #tab =D |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Sun Mar 29, 2009 12:15 am Post subject: |
|
|
Several things you can do:
#history write <filename> will write your command history to file.
#history read <filename> will load a command history file, but those command are only accessible with ctrl-r, ! and arrow up/down.
To create a tab list the following should work, need to be logging in raw or plain mode though:
#event {RECEIVED INPUT} {#line log tab.tin {#tab {%0}}} |
|
| Back to top |
|
 |
Zonbidesu
Joined: 14 Jan 2009 Posts: 28
|
Posted: Sun Mar 29, 2009 10:48 am Post subject: |
|
|
| Wouldn't that be slower then just logging it all at once at the end of my gameplaying and then saving it to the tab list? Methinks I don't want that being done every time I enter a command as I enter it. |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Sun Mar 29, 2009 2:08 pm Post subject: |
|
|
It takes less than a millisecond, so you won't notice it.
There is however an issue with the tab list growing incredibly big. You'd probably want to use at startup:
#class tab read tab.tin
#class tab write tab.tin
All in all you'll probably be better off reading and writing a history list and using ! and ctrl-r:
#event {SESSION DISCONNECTED} {#history write history.tin}
#event {SESSION CONNECTED} {#history read history.tin} |
|
| Back to top |
|
 |
reality3k
Joined: 11 Feb 2009 Posts: 46
|
Posted: Wed May 06, 2009 6:49 pm Post subject: |
|
|
Is there an easy way to make autotab not case sensitive?
The most common use for tab completion for me is player names. They tend to be capitalized on my mud and I want to be able to do "finger des<tab>" and have it fill in "desadrin" or whatever. |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Wed May 06, 2009 10:47 pm Post subject: |
|
|
I've tried that but it generated too many false positives.
Like typing finger Wes<tab> to finger Wesley and autotab would pick 'west' from the exit list. |
|
| Back to top |
|
 |
|