How can I add one command with options to favorites?

Asked by Juan Simón

I'm trying to add the next command "/usr/NX/bin/nxclient --session kemservi" to Kupfer like favorites but I can't.
If press the global keyboard shortcut for the action "Show with Selection" but none of the options showed is Launch...

Question information

Language:
English Edit question
Status:
Expired
For:
kupfer Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#1

This is a usability problem: The 'Selected Text' object is always a text object, not a command. A workaround is to quickly Ctrl+C Ctrl+V to reinsert it as a text input which will turn it into both a command (or if you press down-arrow, a text object).

The problem is the incomplete unifictation of similar types of objects.. text fragments and command fragments, it's fundamentally a current limitation of Kupfer.

Revision history for this message
Juan Simón (simonbcn) said :
#2

If I do Ctrl+C Ctrl+V in Kupfer, it still treats the command like a text.

Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#3

do you have a screenshot? you need the shell commands plugin active, /usr/NX/bin/nxclient must be an executable, and it must be without quotes.

Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#4

wrong button.

Revision history for this message
Juan Simón (simonbcn) said :
#5

Execute nxclient isn't problem. The problem is execute it with parameters: "--session kemservi"

Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#6

Can you provide more information? What I understand you paste (after some indirections) the text "/usr/NX/bin/nxclient --session kemservi" (without quotes) into kupfer, and you can't execute that. But it should be possible, with arguments or not.

Revision history for this message
Juan Simón (simonbcn) said :
#7

I've recorded a video: http://dl.dropbox.com/u/1466192/out.ogv (the problem is that it's in spanish)
First I've pressed the keyboard shortcut for the action "Show with Selection" and in video you can see the available options, none is "Launch" ("Lanzar" in spanish).
After I do Ctrl+C Ctrl+V in Kupfer, same options as the previous run, none is "Launch".
After I write the route to nxclient (/usr/NX/bin/nxclient) and Kupfer identifies the command and it shows "NX Client for Linux" and the option "Launch". But I want launch nxclient with the parameters "--session kemservi".

Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#8

relajate amigo, vamos a ver..

I see the bug now clearly :-) gracias un monton for the video

There are two bugs

1) Selected Text can't be understood as a command
2) A full path with arguments is not recognized as a command (I'm surprised, but this is a missing feature/incompleteness)

Both can be fixed, but (2) is much easier right now.

Revision history for this message
Juan Simón (simonbcn) said :
#9

Do you speak spanish!? ;-)

Ok, do I need to create a bug report?

Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#10

Mi nivel de español es bastante bajo. No tengo las palabras para discutir sobre git, bugs, commit y otras cosas de launchpad. También no estoy hablando nada de español en vivo estos dias.

Al trabajo.. hemos cumplido un "fix" para el bug #2, está en git. El problema de #1 es más dificil y no tengo ideas para ..hacer..algo con #1 hoy o antes del version proximo.

Revision history for this message
Juan Simón (simonbcn) said :
#11

When kupfer has a selected text could offer "Launch" always, no?

Revision history for this message
X (u78qir8a9-deactivatedaccount) said :
#12

Maybe we could do that in the long term yes..

There is a whole chain of issues with how we handle text input, text fragments, commands etc. It's all just one thing -- a "text", but we have split it into multiple types and that's the problem. We can bring it together again but it requires kupfer to be smarter, and we're not quite there yet. But we will be, we will make the learning more adaptive so that it will remember actions for individual actions and such things.

So I think fixing the selected text issue is a long-term thing.

Anyway, in kupfer if you save a favorite with Selected Text(!) then that is a proxy object -- you don't save the text itself, you save 'Selected Text' and the selection changes.

So _in the future_, we will support Selected Text → Run (Execute) but it will be dynamic just like it sounds.

Just like you can put Selected Text → Search With → Google into a trigger today, and it will be dynamic.

Revision history for this message
Launchpad Janitor (janitor) said :
#13

This question was expired because it remained in the 'Open' state without activity for the last 15 days.