Git Product home page Git Product logo

Comments (6)

jtdaugherty avatar jtdaugherty commented on July 19, 2024 1

(So, /msg and /focus.)

from matterhorn.

dagit avatar dagit commented on July 19, 2024

My thoughts:

  • When /msg command appears in chat clients it's typically for messaging a user (not just focusing on a chat window)
  • We could design the command so that it takes an optional message
  • Internally we know the difference between users and channels. We could have a unified /-command that works as long as the channel or nickname is unambiguous. In the ambiguous case we would tell the user to use @ or # to differentiate. I'm assuming #27 gets fixed.

So it could be something like:

/msg (channel|username) [message] where [message] means it's optional.

I think I'd rather have two commands:

  • /msg (channel|username) message -> sends a message to the channel or user without changing the focus in the UI
  • /window (channel|username) -> changes the focus in the UI but doesn't send a message. I'm not tied to the verb choice here, /window is just an example. Other things could be equally effective.

from matterhorn.

jtdaugherty avatar jtdaugherty commented on July 19, 2024

I like the two-command approach you proposed.

from matterhorn.

jtdaugherty avatar jtdaugherty commented on July 19, 2024

Maybe /focus would be better than /window since we don't really have a notion of "window"?

from matterhorn.

jtdaugherty avatar jtdaugherty commented on July 19, 2024

Right now, since we forward unrecognized commands to the server, we actually get /msg for free. If you message someone in this way in Matterhorn, it does what you expect even though /msg doesn't appear in our help output (since it is not a client command). I think this is kinda nice but is confusing. Instead of sending all unrecognized commands to the server, I'd rather whitelist them and add them to our /help output.

from matterhorn.

aisamanra avatar aisamanra commented on July 19, 2024

Closed. WONTFIX. We accept pull requests in JIRA.

(Or, well, we don't actually have dm any more, and Jason and I both contend that the focus commands we have are fine.)

from matterhorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.