Ability to click on filenames in cygwin console to launch file [closed] - cygwin

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
iTerm for the mac has an awesome feature which allows you to ctrl-click on a filename in the terminal. (i.e. from an ls or find etc), and the terminal will attempt to launch that file using the default application for the given file's type.
I'm familiar with various ways of opening a file from cygwin using a command, but am more interested if anyone knows of a method to mouse click to open a file.
Was wondering if anyone has seen/used such a feature in cygwin/putty?

This is implemented in the Mintty terminal along with a lot of other nice features so use that instead of the default cygwin one, you should already have it, if you don't download it from here.

Related

Run a C program automatically when i open Firefox? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have written a C program, which will monitor all the communication taking place through the Firefox browser in Linux. So I need to execute my program as soon as Firefox starts. Please suggest me how do I do so.
Write a bash wrapper script
#!/bin/bash
my_c_program
firefox
Name it something useful and place it on a path that is mentioned in $PATH.
Alternatively, you can put it in an alias:
alias firefox_starter='my_c_program; firefox'
Put this line in your startup program (.bashrc)
You could create a firefox extension which wraps your program in an XPCOM Component. Here is a tutorial for creating firefox extensions.

Bulk multi rename tool [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I need a live multi rename tool.
The one you can find in double commander, or even better total commander.
The best I could find is renameutils,
which lists all the files and let me edit them in my favorite text editor,
but nothing beats something which is designed to be specifically used to rename.
Is there such a program?
Has to be live and interactive - I have to see the edits I'm doing before hitting the "OK" key.
Has to be in the command line - ncurses, slang, shell. Just not GUI.
Edit:
It's probably doesn't belong here, but super-user:)
Answers would still be welcome.
How about RenameWand? http://renamewand.sourceforge.net/
But you indeed should have tried superuser instead: https://superuser.com/questions/25378/mass-renaming-nix-version

How do I run LateX on a emacs file in Linux? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm an absolute beginner and I've never worked on a Linux machine before. I was working on a emacs file from home on a virtual machine. Now that I'm on a Linux machine at school, how do I run LateX on the file and view the dvi? I was able to open emacs and load the file.
You can use C-c C-c, which is bound to the function tex-compile.
Here's a useful hint: you can use C-h m to bring up the documentation for a mode. This documentation usually has a list of the keybindings associated with the mode. In this case, there's a list under the heading "Special Commands:" which includes C-c C-c tex-compile as well as some other commands which may be useful in the future.
One of the best things about Emacs is that it's self-documenting, so learning to use the help system (keys starting with C-h) is invaluable.

How to tab-complete in terminal while stay on the same line? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
When double-tab, the terminal shows a list of command candidates, but the cursor line also moves downwards. How to make it stay on the same line while showing all the candidates below?
I'm guessing there must be some config file that can specify this behavior. This also applies to the case when ctrl-c in the middle of typing a command. I'd like the cursor to stay on the current line.
You need shell with rich terminal support.
For example Z Shell. Bash build with readline library for user interaction and it operate only line-by-line...
This behavior allow to run Bash on most platform as does not require special abilities from terminal.

Linux, Unix or OS X tool for displaying what keyboard typing outputs? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm looking for a tool that will tell me what my keyboard is sending to the operating system when i push different keys.
This is to help me answer this question How to get Cmd-left/right working with iTerm2 and Vim (without requiring .vimrc changes)? which has me trying to figure out why Vim treats my iTerm2 mapping of Cmd-left to Escape-[H differently from Home.
I tried unix's read, and it says that Home and Cmd-left both produce "^[[H". I'm hoping that read is misleading me, and that some other tool will show how Home and Cmd-left are different (note: when I say, Cmd-left in this paragraph, it is when iTerm2's mapping is turned on).
Thanks!
You're doing all this in a terminal, right?
I'm afraid you're not going to do much better than read (my preferred approach is to do cat > file, type, press ^D, and then look at the file in a hex editor).
With regard to the underlying question, it's worth hunting for options in your terminal emulator. Right now it's emulating a terminal which doesn't distinguish between HOME and CMD+LEFT. It may be possible to tell it to emulate a different terminal, which does.

Resources