how to open multiple files in CtrlP split in a new window - ctrlp

Assume I have a set of related files (say .C implementation file and .h header file). I would like to open both of these in a new window on search but they should be split(horizontally/vertically) so that I can view them together. What is the easiest way to do this in CtrlP ?

You can use c-z to select the files and then c-o to open them.
From the README: https://github.com/kien/ctrlp.vim#basic-usage

Related

Emeditor: run a macro for all file inside a folder?

How to run a (previously recorded) macro for all files inside a folder ?
Example : I have recorded a macro that is working correctly for an opened html file. I have saved the macro as "test.jsee".
I have a folder in my computer named "C:\folder_with_files". It is full of html files.
How to run "test.jsee" for all files inside the folder "C:\folder_with_files" ?
ps: same question if many subfolders contains html files inside the main big folder "C:\folder_with_files" ?
pps: my idea is that Emeditor opens one file, run the macro, close the file (I have already saved the updated file in my macro) and do the same for the next file.
There are two ways to accomplish your task.
Select Run with Temporary Options on the Macros menu. Select the macro, set the Run the macro against each opened document option, add (or drag and drop) files or folders to the list, and set the Save and close each document after running the macro if necessary.
Or
Select Advanced Open on the File menu. Set the Run a macro against each opened document, select the macro, click the Select Files to Open... button to select all files you want to open.
If you can't see these commands, please make sure you are using the newest version of EmEditor Professional.

suggest to add split and combine files from folder

File splitter and combine function of emeditor is very powerful,
but is support opened file and specified file only.
When we have a couple of files need to be splitted or combined.
It's not be able to work .
Can author add this function?
Ready to buy a lifetime liscense.
You can open all files with EmEditor before you combine files. This is partly because EmEditor needs to know exact file encodings, and bookmarks need to be set after files are open. Opening multiple files is easy and fast with EmEditor. You can select multiple files in the Open dialog box, or you can drag and drop multiple files from Windows Explorer. Splitting files can be already possible without opening files.

Prevent Xcode from opening new files

Is there any way to prevent Xcode from opening brand new files? Let me explain. Everytime I create a new file (Xib, .swift, .storyboard, etc...) Xcode opens that new file automatically in the standard editor. This functionality kinda annoys me because something I just want to create the file and maybe open it on the assistance editor instead or just to work on the file later. I tried changing some of the Xcode's behavior but I don't see any ways where I can trigger an action when certain events occur (like creating a new file).
Well here's one way:
Create a folder full of empty files of various types (with various extensions) that you typically create. Then whenenver you want a new file, rather than telling Xcode to create a new file, use the "Add Files to ..." command and choose one of those files. Just remember to also check the checkbox "Copy items if needed".
Doing this won't open the added file.
As an added benefit, you could also make some versions of these files pre-seeded with code or comments or whatever else that you often keep re-typing into many of your new files.

How do I use Mac OS aliases in Sublime Text 3?

I want to open the tree of folders which contains any code on my Mac in Sublime 3. Something like this:
But I don't have all of it in one folder, and it isn't convenient enough to open many folders in Sublime every time I close the app. So I have created 'aliases' (via Finder) to my folders and put them to one (folder), which i want to open with Sublime.
That didn't work out. Sublime opens these aliases as hex code. While ordinary folders open well.
So the main question: is there a way to make this work as I thought via preferences, or any plugin?
Use symbolic links instead by opening Terminal and using ln -s <SOURCE> <ALIAS>.
You can keep any number of folders you want collected in one place by using projects. Simply drag the folders you want, in the order you want, into the sidebar. Then, select Project -> Save Project As... and save the file anywhere you want with the .sublime-project extension. While you're at it, make sure you have
"hot_exit": true
in your user settings, as this enables you to close windows which have a project assigned to them, and all open files and unsaved changes are automatically preserved. When you next open the project, everything will be the same.

Associating File Extensions to a files with variable extensions

In Windows, I have a set of files in a folder that all have similarly formatted text content, but with different extensions based on a timestamp. For example, assume two files named data.20140424 and data.20140423 for two days. Each day brings a new file with a new extension.
Is there a way to associate all the extensions with a single program that can view the files? Do I need to have a registry entry for each extension? Is there an alternative way to associate files besides extension, like with mime type or full filename?
You need a registry entry for each file. If you're on windows, double-click the file, select the program to open it with. Make sure "use this program every time" checkbox or similar checkbox is checked. It will open and you won't need to do this again.

Resources