 |
adroid28 Newbie
Joined: 13 Aug 2010 Posts: 3
|
Posted: Fri Aug 13, 2010 11:56 pm
Keyboard shortcuts and commands |
Hello everyone :)
I am really sorry for the long post but I am currently trying out the demo of CMUD and need to see if I can modify it to fit certain habits.
I was wondering if there are any ways to do the following using only the keyboard.
1. Change focus between the command line and the map
2. Move around and zoom the map. If that is not possible using just the keyboard could you tell me how to scroll with the trackpad? I am on a macbook pro running parallels and my scrolling up down zooms in/out while I have to scroll left/right up/down using the right and bottom bars which is really slow.
3. walk to a named location with a command. For example #run md would start a speedwalk to the room md.
4. set current location to a named location. For exemple #current md sets current to md
5. assign some "emacs" macros:
- CTRL-J for enter (I hacked that by sending the current text with a space appended)
- CTRL-P/CTRL-N for up and down arrow (scrollback buffer)
- CTRL-A/CTRL-E go to start and end of line
and others.. (if someone can point me to the methodology I am sure I can do it myself)
6. return to command line from anywhere
Would be really grateful for any help :)
Dionysis |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Aug 14, 2010 1:38 am |
1)yes. CTRL-TAB.
2)dunno, but it really annoys me when the focus is on the mapper and I accidentally end up zooming in/out to extreme levels (one time I got SO far in I was able to see individual pixels on room squares!).
3)yes. #WALK. You can use vnum (room key, too?), and rooms can also have a shortname.
4)#TELEPORT. I'm unsure if the old mapper accepted room shortnames as well as vnums/roomkeys, but I think it did.
5)What's EMACS? And why do you want to make macros for keys that are already on the keyboard?
a)you probably don't want to use CTRL-J. In CMud, it's a hotkey to clear the screen and apparently there's something wrong with this feature. This bug might interfere with your plan to do whatever you were going to do with it.
b)to get into and out of the scrollback buffer you can use CTRL-Z. I don't know of a way to scroll the scrollback buffer via the keyboard, though, so this might involve a more involved trick such as positioning the divider bar somewhere else.
c)HOME and END do this already. You'll have to explain better what exactly you want, as I get the feeling you're not talking about the command line.
6)#INPUT. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
adroid28 Newbie
Joined: 13 Aug 2010 Posts: 3
|
Posted: Sat Aug 14, 2010 2:49 pm |
Thank you for your answer :)
1) CTRL-TAB changes between undocked windows. I have my map and mud output in one window as it is more tidy this way. I guess I could undock the map but I would really prefer not to.
2) Anyone? This is a real issue since it makes it really hard to look for places on the map.
3+4) Thanks :) that worked great!
5) emacs is an advanced text editor (google it). The reason for using the shortcuts is that there are much better when you are touch typing since you don't have to move from the home row.
a) I am using CTRL-J overriding the clear window function that was driving me crazy (imagine clearing the window every time you press enter!). I was just wondering if there is a command that sends the current text to the mud.
b) similarly a command that accesses the scrolback buffer.
c) I am talking about the command line but probably that is not possible since these kind of behaviours must be part of windows
6) Assigning #INPUT to a key with a macro clears the command line but doesn't focus on it when I am for example on the map. I guess that issue will be solved if I manage to switch through windows.
Any ideas?
Dionysis |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Aug 16, 2010 1:25 pm |
I'm really not sure why you are trying to make the Cmud interface like Emacs. Sure, Emacs is great, but its a different program. It does different things than Cmud. But, to answer your questions,
1) If the windows are docked, there is no way to switch between windows from the keyboard. This functionality is controlled by Windows.
2) I'm not sure exactly what you are trying to do with this. "Look for places on the map"? Do you mean see where a specific room is on the map? Maybe highlight it and center on it? There are two things I can think of that might be of use to you, depending on exactly what you mean. First, you can use #PATHHIGH combined with %pathfrom() to highlight a path from one room (for instance, your location) to another room. This will not move the view of the map, however. The second thing is using the #TELEPORT command to move your location marker to the room you want to see, then use it to go back to where your character really is.
In the Beta version, hopefully soon to become public, there is another option. Version 3.xx introduces the ability to have multiple "location" objects, each of which has a location marker on the map. You can create new location objects with the new #LOCATION command, and change which location object the map is tracking (and thus centering on) with the new #TRACK command.
5a) No, there is no way do that. That is what the ENTER key is for.
5b) The Scrollback buffer? Do you mean the command history? Check out the documentation for command history, command completion, the #HISTORY command, and #H+ and #H-.
5c) No, there is no way to change that.
6) Right. This is simply part of the issue of not being able to switch focus between windows which are docked, which is Windows functionality. |
|
|
 |
adroid28 Newbie
Joined: 13 Aug 2010 Posts: 3
|
Posted: Tue Aug 17, 2010 2:22 am |
I think you are right about emacs. I should try to learn some new habits. I am not sure though that I can
do what I want even using the existing shortcuts. It seems to me (and please correct me if I am wrong)
that CMUD is created to be used with the mouse. In my current client I can do everything without even getting
near the mouse and the reason that I am trying CMUD is its beautiful map and the fact that a map exists for
the MUD I am playing. I don't think though that my desire is going to be strong enough to change my mudding
experience so much.
Just as a reference in case someone searches the forums:
My problem with the map was because I am running vista as a virtual machine on a mac. As a consequence the
ctrl - scroll function doesn't work and that is the reason I can not navigate the map correctly. As a mac user
I expected to be able to scroll in all directions and zoom by pressing cmd and up down scrolling. That was the
source of my confusion.
thanks for your help :)
Dionysis |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|