Keyboard shortcut for moving tabs in SublimeText3 - sublimetext3

Every time I open a new tab in SublimeText I have to take my hands off the keyboard and use the mouse to move the newly opened tab to the desired position among the existing tabs...
Surely there must be a keyboard shortcut for moving SublimeText Tabs left and/or right?
Please say yes...

Not by default unfortunately, but there are two awesome things about Sublime to be aware of:
This plugin https://github.com/SublimeText/MoveTab will let you move tabs with CTRL + Shift + page up/down
You can go to any tab by pressing ctrl+p and typing the name of the tab, so if your tabs are disorganized, you don't have to visually search for them or organize them as long as you know the name of the file you want (or a substring of it if it's unique enough)

It seems as if there are no shortcuts to do this.
You can see all actions and their shortcuts in the command palette (Ctrl+p on Windows). There is no such action as Move this tab to the left.
The good news, however, is that there is a plugin that does exactly this:
https://github.com/SublimeText/MoveTab
You can install it using Package Control.

Related

How to undo/redo user operations?

The situation is:
Open a file
Drag minimap to the middle of this long file
Click somewhere on the line I want to edit
Intend to press Home to go to the head of the line.
Accidentally press Ctrl + Home
Am taken to the head of the file.
QUESTION
Is there a shortcut to return to the line I want to edit?
From the creator of Sublime Text at https://forum.sublimetext.com/t/soft-undo/307
Undo/redo in Sublime Text normally only steps through actions that modify the buffer, skipping over those that simply modify the selection. Changes to the selection are still part of the undo history, and can be stepped through using Ctrl+U/Ctrl+Shift+U (softUndo/softRedo commands). These key bindings aren't displayed in the menu, and I'm wondering if anyone has discovered them on their own.
I rarely use them myself, but did today, so it got me wondering if anyone else does
Change Ctrl in the above to Cmd if using a Mac.

Moving between text and input and textarea areas without using mouse and closing panels

In the majority of programs and sites it is possible to switch between input and textarea fields by means of combinations of the Tab and Shift+Tab keys.
But in Sublime Text Tab — tabulation.
For example, for me open Goto Line Panel and console.
May I move between entry fields and my text also as in the majority of programs becomes by means of keyboard combinations of Tab and Shift+Tab? I know, what the Tab and Shift+Tab keys is needed for tabulation, but any combination of keys can be used to move between input and textarea fields.
Thanks.
TAB will not work but this can be achieved by series of shortcuts:
Opening line selector: Ctrl+G
Opening search: Ctrl+F
Going from search to founded string: Alt+Enter
Shortcuts above are available on Linux version. They may be different on Windows but they are there and can be found in online documentation.
With Sublime Text you can personalize your shortcut!
I found this guide on the official website and this "different but useful" question about it.
So you can create your own sort of switch with comfortable combination. Example:
alt+1 to go to search
alt+2 to go to the text
alt+3 to go to the bottom
...
this is also faster then the "tag way" because it is not cyclic!
i haven't tried it but as mentioned by Draco the commands to move exist so you can just make them more comfortable.

Can't go to next/previous edit point in Brackets with Emmet

Support for Emmet's next and previous edit point seems to be missing or what? Every time I press CTRL+ALT+--> my screen rotates. This is happening on windows only.
EDIT: You can disable the default keyboard shortcuts in control panel but in that case any application won't be able to use those too, nor is there a way remap the keys in Brackets easily!
All available keybindings are defined in keymap.json.
source: https://github.com/emmetio/brackets-emmet
To open this keymap file, first open Brackets, then go to Help > Show Extensions Folder. Open the user folder, then modify keymap.json to however you prefer your shortcuts. Reload Brackets Editor when finished.
My keymap was located inC:\Users\%username%\AppData\Roaming\Brackets\extensions\user\brackets-emmet
You will need to change these two lines:
"next_edit_point": "Ctrl-Alt-Right",
"prev_edit_point": "Ctrl-Alt-Left",

Shortcut for deleting a line in dreamweaver?

What is the shortcut for deleting the current line where the cursor positioned.
ex: eclipse have crtl+d
To delete line(s)
Mac: Command+Shift+D
Windows: Ctrl+Shift+D
https://helpx.adobe.com/dreamweaver/using/keyboard-shortcuts.html
There are no direct shortcuts as far as I know but here is a list of commands for dreamweaver.
http://cpaoffers.com/design/dw-shortcuts.php
My typical method to do this is to hit the home > shift+end > del.
Or you could try shift+up or shift+down to select the line above or below and then hit delete.
Danilo Celic's answer helped me with CS6, just use the second one. Although it's in Japanese, just install and use it.
If you want to know more: Then, find the installed files in your own
C:\Users\[your user name]\AppData\Roaming\Adobe\Dreamweaver CS6\[your CS6 language]\Configuration\Commands
There you can open the just-installed files and check them. The comments are in Japanese. The code are in Javascript and are easy to read.
There are 5 commands in that file. To use only the "Delete line" function: In CS6, open history panel, go to design mode, do any action like press a key, right click on that action from history panel and record that action. Then you can find the record action in the Commands folder mentioned above, and then you can copy the javascript from the downloaded one into your own recorded action file.
I've seen two extensions that add the delete line functionality:
http://xtnd.us/dreamweaver/codeextras
http://yoropan.com/en/archives/544
I haven't used either one. I've been told that the first one may not work in Dreamweaver CS6, no idea about the other one. once installed, you should be able to add a keyboard shortcut (Edit -> Preferences, Dreamweaver -> Preferences on Mac) for functionality that you're looking for.
You can add a custom keyboard shortcut for deleting lines in Dreamweaver.
Dreamweaver uses Brackets for its text editor, and this is what handles the Delete Line command, not the traditional Menu system for rebinding most other Dreamweaver commands.
Create a Brackets keyboard shortcut configuration file.
Windows: %APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Brackets\keymap.json
Mac OS: ~/Library/Application Support/Adobe Dreamweaver CC 2019/en_US/Configuration/Brackets/keymap.json (untested)
Create an override in this file, according to the Brackets User Key Bindings JSON Data Format. Make sure you use the - separator between key names, not +.
{
"overrides": {
"Ctrl-E": "edit.deletelines"
}
}
Rebind any conflicting keyboard shortcuts in Dreamweaver. In my Ctrl+E example above, it collides with Quick Edit.
In Dreamweaver, go to Edit → Keyboard Shortcuts.
Make a new Set if you're using the default Dreamweaver Standard Set.
Find the command you want to change. Quick Edit is in the Code Editing section.
Highlight the shortcut you want to modify.
If you want to unbind that shortcut, click the - button.
Otherwise, rebind that shortcut by typing the new shortcut in the Press Key field, and then clicking Change.
Click OK to save your changes.
If your change is not persisted, you can usually fix this by editing the following files.
%APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Menus\Custom Sets\*.xml
%APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Menus\menus.xml
Restart Dreamweaver for your new Brackets keyboard shortcuts to be read.
To bind other commands besides Delete Line, see the full Brackets Shortcuts command ID column.
I used these steps with Adobe Dreamweaver 2019 (19.2) on Windows.

Better Tab Navigation in gVim

How can I get tabs in gVim to work like they do in most good IDEs? I say gVim specifically because that is the version of Vim that I use but I am open to alternatives.
I want the following things for my tabs:
Ctrl+Tab goes to the MRU (most recently used) tab.
Holding down Ctrl and then pressing Tab multiple times continues to change to the next most recently used tab every time you press Tab.
When ctags are built and working and you press Ctrl+], if this takes you to a different file it should open that file in a new tab or if a tab with that file is already open it should switch to that one.
Easy tab reordering with the mouse just by dragging them around.
I am posting all these as a single question because I am hoping there is a good single solution that will do all or most of these things instead of having to hack each customization in individually. I would think this would be the preferred behavior by most of us.
Vim has no built in MRU. There is at least one plugin for that, though, but I've never used it.
The tabs in Vim are not the same as the tabs in your IDE, they are more like perspectives. The equivalent of your IDE's tabs in Vim are buffers and "(split)windows". There are a number of ways to work with buffers including some native ones and a number of third party plugins. Some of these plugins have MRU-like features.
The Vim wiki has a bunch of pages about tabs.

Resources