stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] Re: Stumpwm-devel Digest, Vol 42, Issue 8


From: Rohan Nicholls
Subject: Re: [STUMP] Re: Stumpwm-devel Digest, Vol 42, Issue 8
Date: Wed, 17 Sep 2008 14:37:58 +0200

Hi,

I see that you have a couple of good answers already, and they do not
seem to be what you are looking for, so could you give a detailed
example of exactly  what you are looking for, and we could help you
out.

Unclear points from your question:
 - Where is the string coming from?  The clipboard?
 - Can you give a specific example of what you mean by "the necessary
formatting"
 - When I say exactly, I mean something that even my small brain can
   follow, such as
   - I have text here
   - I hit my keybinding and it is read from here (could be interactive)
   - formatted in this way
   - and inserted over here

While not understanding exactly what you are looking for, my
overwhelming impression is that the previous answers are what you want
and that emacs might be the answer to all your prayers. :)

On Tue, Sep 16, 2008 at 10:04 PM,  <address@hidden> wrote:
> So my thought was to do something like
> (stumpwm:define-key stumpwm:*root-map* (stumpwm:kbd "C-z")
> (window-send-string (current-window) "Test")
>
> Where instead of "Test" I would put a string that would put the necessary
> formatting into the editor.  I see that this doesn't quite do what I want,
> but is there a way get something like this to work?
>
> If not, are there editors that have this capability?
>
>
> On Tue, 16 Sep 2008, address@hidden wrote:
>
>> Send Stumpwm-devel mailing list submissions to
>>        address@hidden
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://lists.nongnu.org/mailman/listinfo/stumpwm-devel
>> or, via email, send a message with subject or body 'help' to
>>        address@hidden
>>
>> You can reach the person managing the list at
>>        address@hidden
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Stumpwm-devel digest..."
>>
>>
>> Today's Topics:
>>
>>  1. window-send-string (address@hidden)
>>  2. Re: window-send-string (Michael Raskin)
>>  3. Re: window-send-string (Ted Zlatanov)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 15 Sep 2008 10:25:28 -0700 (PDT)
>> From: address@hidden
>> Subject: [STUMP] window-send-string
>> To: address@hidden
>> Message-ID: <address@hidden>
>> Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
>>
>> I am new to stumpwm and I am wondering if there is a way to setup a
>> keybinding that will call the window-send-string.  The purpose is I am
>> going to try to take notes in LaTeX in class and I'd like to be able to
>> insert code necessary to do things like create matrices or commutative
>> diagrams.  I also have a related question.  I tried setting up a test key
>> binding which worked, but I found it was not persistent.  I don't see
>> anything like a .stumpwmrc file.  How do I get such things to be
>> persistent?
>>
>> I apologize if these questions would be answered if I RTFM more, but I
>> even looked in the archives and couldn't find anything.  Any assistance
>> would be greatly appreciated.  Thank you.
>>
>> -Matt
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 16 Sep 2008 09:25:07 +0400
>> From: Michael Raskin <address@hidden>
>> Subject: Re: [STUMP] window-send-string
>> To: address@hidden
>> Cc: address@hidden
>> Message-ID: <address@hidden>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> address@hidden wrote:
>>>
>>> I am new to stumpwm and I am wondering if there is a way to setup a
>>> keybinding that will call the window-send-string.  The purpose is I am
>>> going to try to take notes in LaTeX in class and I'd like to be able to
>>> insert code necessary to do things like create matrices or commutative
>>> diagrams.  I also have a related question.  I tried setting up a test
>>> key binding which worked, but I found it was not persistent.  I don't
>>> see anything like a .stumpwmrc file.  How do I get such things to be
>>> persistent?
>>
>> You create .stumpwmrc . It is Common Lisp code to be executed inside
>> StumpWM (as if it were eval-ed in one pass). It's better to specify
>> (in-package :stumpwm) in the beginning. You can defcommand whatever Lisp
>> expression you want (for example, window-send-string something) and bind
>> the command. But I would use an text editor capable of bindings for
>> LaTeX editing anyway...
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Tue, 16 Sep 2008 08:31:41 -0500
>> From: Ted Zlatanov <address@hidden>
>> Subject: Re: [STUMP] window-send-string
>> To: address@hidden
>> Message-ID: <address@hidden>
>> Content-Type: text/plain; charset=us-ascii
>>
>> On Mon, 15 Sep 2008 10:25:28 -0700 (PDT) address@hidden wrote:
>>
>> m> I am new to stumpwm and I am wondering if there is a way to setup a
>> m> keybinding that will call the window-send-string.  The purpose is I am
>> m> going to try to take notes in LaTeX in class and I'd like to be able
>> m> to insert code necessary to do things like create matrices or
>> m> commutative diagrams.  I also have a related question.  I tried
>> m> setting up a test key binding which worked, but I found it was not
>> m> persistent.  I don't see anything like a .stumpwmrc file.  How do I
>> m> get such things to be persistent?
>>
>> m> I apologize if these questions would be answered if I RTFM more, but I
>> m> even looked in the archives and couldn't find anything.  Any
>> m> assistance would be greatly appreciated.  Thank you.
>>
>> The window manager doesn't normally do this kind of application-specific
>> keybinding, so you'll find little useful information.  Look at Emacs'
>> LaTeX editing facilities, they are very good for what you describe, and
>> there's even a live-preview mode.
>>
>> Ted
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Stumpwm-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/stumpwm-devel
>>
>>
>> End of Stumpwm-devel Digest, Vol 42, Issue 8
>> ********************************************
>>
>
>
> _______________________________________________
> Stumpwm-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/stumpwm-devel
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]