Questions tagged [macro]
49 questions
147
votes
6 answers
How to comment multiple lines at once?
How can I select a bunch of text and comment it all out?
Currently I go to the first line, go to insert mode then type # left-arrowdown-arrow and then I repeat that sequence, perhaps saving a few keystrokes by using the . repeat feature to do each…
Michael Durrant
- 41,213
- 69
- 165
- 232
22
votes
5 answers
Keyboard Shortcut To Send Text Strings To Program
How can I configure a shortcut key to send a text string to the current program?
The purpose is to type common entries quicker (email address, street address, phone number, username, favorite quote, etc).
I don't need any further automation than…
Steven
- 726
- 1
- 7
- 14
15
votes
2 answers
How to invoke an Openoffice macro from the Linux command line
I have an OpenOfice macro that I want to use to process the contents of an OpenOffice file. I am able to do this by opening the file with OpenOffice and then running the macro. How do I invoke the macro from the Linux command line without using the…
CW Holeman II
- 3,654
- 5
- 31
- 49
14
votes
4 answers
Is there a vim shortcut for ?
In vim, if I'm working on a Python script, I will commonly type:
:! python this_script.py
to execute the script. Is there a shortcut for the name of the current file? If not, can I easily make one? I'm new at vim, and I'm not sure how to google for…
Eric Wilson
- 4,622
- 9
- 32
- 43
11
votes
4 answers
Can I launch macros and shortcuts from a second keyboard on Linux?
I have a small numpad keyboard which I would like to use for launching macros and shortcuts, along side my regular keyboard. I can attach macros and shortcuts to these keys (i.e, numpad 1 minimises the active window), but my primary keyboard numpad…
umbro_tracksuit
- 327
- 3
- 10
8
votes
3 answers
Interacting with X applications programmatically
I have an application which is built using GTK+. The application has a very simple interface. When started, the same window always opens, with a few input controls.
We want to write a script to fill in text in a couple fields, check a check box,…
Tom Marthenal
- 406
- 3
- 7
5
votes
3 answers
Making shortcuts cross desktop environment, possible?
I'm a big fan of keyboards, so a lot of thing a done by combination of keys, like open a file browser, web browser etc.
Is there some daemon that can monitor my key presses, and launch some program afterwards, so that I won't have to configure…
daisy
- 53,527
- 78
- 236
- 383
4
votes
2 answers
Undoing C syntax mangling macros to make exctags able to create prototype tags
I can successfully create a tags file for vim with exctags (Exuberant Ctags).
However, creating tags allowing to jump to the prototype of a function does not work, due the system headers using a syntax-mangling macro of the form
#define _EXFUN(name,…
Jens
- 1,738
- 4
- 17
- 36
4
votes
2 answers
Execute script from i3 config
Question:
I'm using i3-wm and I have Mod3 working as a hotkey. I have the following in ./config/i3/config:
#This command works
bindsym Mod3+f exec "firefox"
#This doesn't work nor do my other scripts
bindsym Mod3+w exec "openBrowser"
Both of…
Philip Kirkbride
- 9,816
- 25
- 95
- 167
4
votes
2 answers
Vim markers and macros
Is there a way to make a macro operate up to a marker? I know if I do 5@a my macro will operate on 5 lines. Example:
set marker with `mc`
record a macro with `qa`
... now what?
Obviously 'c@a just moves the cursor to the marker at c. I've tried…
zje
- 2,251
- 14
- 20
4
votes
1 answer
Automating typing strings in xmacro
Could you show me how to write macro in xmacro (that will work in whole desktop environment) that is able to expand strings?
E.g. I will type "thx" and it will expand to "thank you".
xralf
- 16,149
- 29
- 101
- 149
3
votes
2 answers
Checking for required M4 macros... yelp.m4 not found
I am on Linux Mint 18 Cinnamon 64-bit.
I was about to compile file-roller known as Archive manager for GNOME from source.
But when running:
./autogen.sh
There is a following M4 macro missing:
Checking for required M4 macros...
yelp.m4 not…
Vlastimil Burián
- 27,586
- 56
- 179
- 309
3
votes
1 answer
How to run batch sas job in unix sas?
I have 5 SAS jobs that I need to run sequentially, one after the other.
I typically type in nohup sas filename1.sas & in the command line to run and manually check for progress every few hours.
If the 1st job is complete and no error, I then type…
SuperKing
- 81
- 1
- 2
- 5
3
votes
2 answers
Can mutt macros obtain properties from the current message?
In mutt, can macros can obtain some of the properties from the current message, in order to use them as variables? Here are some examples of potential macros, with the properties I'd wish to obtain in italics.
Remove gpg encryption for the current…
Sparhawk
- 19,561
- 18
- 86
- 152
3
votes
1 answer
mutt: ask for confirmation before moving message to archive
I have following macro defined in my muttrc:
macro index s ":set confirmappend=no delete=yes auto_tag=yes\n\
=archive\n:set delete=ask-yes\n"
When I press s on a message, it will immediately be moved into my archive…
Martin Vegter
- 69
- 66
- 195
- 326