Making Terminal Vim my default text editor. xfce4 FreeBSD [closed] - shell

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 want to be able to double click a file and have it open in vim inside the terminal.
I can change the default application by right clicking and selecting "Open with another application" then "Use A custom command", and then using a shell script in a file I wrote... which is this
terminal -e vim
It works in that it opens vim in a terminal, but not the file i was selecting.
So how can I change the script so that it opens the files I select?

You could simply create a vim.desktop file.

Related

How to create a file in VS code via terminal on mac inside a folder [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
enter image description here
I tried using code command but it doesn't create the file inside the folder I am in
It looks like you didn't save the file. After you save it, it will be written in disk.
If you want to create an empty file and then open in VSCode you could run also:
touch index.css
code index.css
Use tha nano command, it is one of the most useful commands for saving and editing a file inside terminal. If it does not save on the folder your have opened, then maybe you are at another directory in the terminal. You can see the directory on the very left of the line where you type in the terminal.
In zsh, it is on the left of the '%' sign.

Is there a way to select an option from the right-click menu from a Windows Batch Script? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I want to write a script to navigate to my music-folder, "right-click" on the 'New MP3' folder, and select "Add to VLC media player's Playlist". Is there any way to get drop-down menu options like this in a script (bash, python, whatever)?
Thanks!
You question is a bit vague, and you're talking about Bash and Windows at the same time, but I'm assuming you're on a Windows machine and want to automatically add your "New MP3" folder to VLC's playlist.
To achieve this, open Notepad, and save the following line to a .bat file:
"C:\Path\To\vlc.exe" --one-instance --playlist-enqueue "C:\Path\To\New MP3"
This will add the files in the specified folder to VLC.

Gedit in Windows creates multiple instances [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 installed the latest version (2.30.1) of Gedit for Windows. And whenever I open files from explorer with gedit, it won't open as tabs in the current instance, instead it opens a new window for each file, like a notepad. I do not like this behavior. Is there any way to configure gedit to open files in the same window as tabs?
Judging from this askubuntu.org post, this is not only an issue on windows. Making the suggested changes and building gedit for windows might yield some result.
This may not be the best answer, but you can try Notepad++ instead of Gedit for Windows. It has basically the same features (and I actually find Notepad++ better - a friend of mine uses Wine with Notepad++ on Ubuntu).
http://notepad-plus-plus.org/

How do I set the associated application for files with no extension in Windows? [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 12 years ago.
Improve this question
Already Migrated to Super User:
How to set the default program for opening files without an extension in Windows?
I am running Windows 7 x64 and when double clicking on a file with no extension, I would like it to automatically open in notepad rather than bring up the "Open with" window. Does anyone know how to do this?

How to open a symlink without the terminal window popping up? [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 12 years ago.
Improve this question
How can I open a symlink without the terminal window popping up? Moreover, when I close the terminal window, the application quits as well. I tried using
nohup open symlink1
without any results. I have made a symlink to the iTunes executable (the one inside the contents package, NOT the iTunes.app) which I want to be able to open by double clicking the link, but without the terminal window popping up.
Why not just make an HFS+ alias? Command-option-drag the iTunes app anywhere you want on your machine, and it should work like you want it to.
I just figured out a solution:
Make an executable (intended as the link)
#!/bin/bash
cd /Applications/iTunes.app/Contents/MacOS
nohup ./iTunesX &
exit
and change under preferences in Terminal
When the shell quits: close if the shell exited cleanly
Change iTunesX and the cd path to any desired target.

Resources