How could I hide the minimap bar on sublimetext 3 - sublimetext3

It takes too much space on the window,
I tried some option in the configuration
It seems not working, any idea ?
User setting
"draw_minimap_border": false,
"draw_minimap": false,
"hide_minimap": true,
"always_show_minimap_viewport": false

Click on View (check the mouse arrow/pointer in below image) on top menu bar or hit Alt + V and click Hide Minimap

I added a shortcut on Sublime Text 3.
Go to Preferences -> Key Bindings. In user key bindings I added:
[
{ "keys": ["ctrl+f2"], "command": "toggle_minimap" },
]
Obviously you can choose another key combination.

I don't believe there's a setting in Sublime Text 3 to hide the minimap by default.
This solution has worked perfectly for me, however:
Save the following Python code as minimap_setting.py in the User directory (in Preferences -> Browse Packages):
# -*- encoding: utf-8 -*-
import sublime
import sublime_plugin
class MinimapSetting(sublime_plugin.EventListener):
def on_activated(self, view):
show_minimap = view.settings().get('show_minimap')
if show_minimap:
view.window().set_minimap_visible(True)
elif show_minimap is not None:
view.window().set_minimap_visible(False)
Then, you just add "show_minimap": false in your settings and you're good to go.

Ctrl+Shift+p to open the command palette, then type in minimap.

It's very easy in Sublime text 3. To hide Minimap:
View > Hide Minimap

Check your default settings; Preferences -> Settings - Default. If a setting is not listed there, your version of sublime will not handle overriding it in Settings - User - Don't waste your time.
Check if the latest version of sublime has settings you can override - http://docs.sublimetext.info/en/latest/reference/settings.html
On the latest sublime for me, I can't hide tabs, the minimap or the status bar via user settings - just by manually disabling them in the menu dropdown.

Just use package and once for all.
Tools > Command Palette > Package Control: Install Package > Search Close​Minimap​On​Multi​View and install. It will close all minimap for all windows.

Now you can disable on View menu clicking on Hide Minimap.

On SublimeText 3, I can see F2 Keymap, easier, isn't it?

Related

How to remove code suggestion / help popup in sublime 3

I keep getting this annoying code help popup in sublime 3.
It seems to have only appeared recently. I'm not sure if it's part of sublime or some plugin.
Is there a way to disable this from showing?
EDIT:
Turns out this is to do with the package Naomi. Does anybody know if this is a configurable setting with this package?
you need to do following steps:
Go sublime Menu bar
select preferences
add this following code to user file and save it.
Blockquote
{
// Controls auto pairing of quotes, brackets etc
"auto_match_enabled": false,
// Enable visualization of the matching tag in HTML and XML
"match_tags": false,
}
I installed sublime, and disable completions popup by adding
"auto_complete": false
to the preferences.
You get to the preferences by: Menu Preferences -> Settings. There, you are supposed to edit the User Preferences file by adding custom prefs like the above snippet between the existing curly braces.

GitGutter ocd Alignment annoyance

Using Sublime text 3 along with GitGutter, I cannot help but feel constantly annoyed that alignment of the deleted item isn't aligned like the addition and change icons. Multiple themes and setting changes later and the issue still shows. Though it seems to be the actual position and not an alignment bug, I cannot help it from bothering me. GitGutter problem image
If you don't like it just change it :)
GitGutter support custom themes:
In Sublime Text open Preferences > Browse Packages...
Create a folder GitGutterThemeAligned
Download the default theme from github and put it into that folder
Rename Default.gitgutter-theme to Default Aligned.gitgutter-theme
Edit the image files deleted_* with an image editor of your choice
Open the GitGutter settings Preferences > Package Settings > GitGutter > Settings
Change the "theme" setting to "theme": "Default Aligned.gitgutter-theme"
Restart Sublime Text

Sublime text 3 how to hide Definition on mouse over function?

I've tried to find a solution in other posts but no solution found.
I'm using Sublime text 3 and since I installed last update 3126, when I put my mouse over a function, in PHP ou Javascript, I get a list of all files using this function and it's useless for me and takes all place on my screen.
How can I hide this ?
I'm using those Packages :
alignment
compare side by side
Emmet
minifier
Sidebar
livereload
SFTP
Sublimelinter
colorpicker
I love this tool but I need a bit more help to configure my own options.
Thanks for help !
Also new in 3124 is Show Definition, which will show where a symbol is defined when hovering over it with the mouse. This makes use of the new on_hover API, and can be controlled via the show_definitions setting. — Sublime Text Blog
Show definitions on hovers can be disabled via the show_definitions setting.
User
Menu > Preferences > Settings (Preferences.sublime-settings - User)
{
"show_definitions": false
}
Per-Project
Menu > Project > Edit Project
{
"settings": {
"show_definitions": false
}
}
Similar to this SO question on inline build errors.

Sublime text editor doesn't auto-refreshes the file if it is modified by another program

Although Sublime is a really powerful text editor but I am facing an issue. I have been using sublime text editor to view logs of my application.Suppose I have already opened file in my editor. After the logs are modified by the app server.
Sublime doesn't give any popup like we get in other editors
Example:
NOtepad++ says:
Also it doesn't modify the file. I have to close the file explicitly and then I re-open the file to ready the modified logs.
Only options i get in my sublime preferences are :
Please help..!
You are using an extremely outdated version of sublime (1.4). You can enable this functionality by upgrading and performing a small settings tweak:
Download the new SublimeText
Install it and open it
Go to the preferences menu and select "settings"
This will open the settings files for sublime, scroll down to line 349 on the left panel and copy that line.
Paste in the copied line into the right pane and replace "false" with "true"
Save and restart SublimeText
This should fix your issue entirely while also upgrading you to the awesome new SublimeText :)
Happy coding!
Set the following setting to true.
Menu > Preferences > Settings
// Always prompt before reloading a file, even if the file hasn't been
// modified. The default behavior is to automatically reload a file if it
// hasn't been edited. If a file has unsaved changes, a prompt will always
// be shown.
"always_prompt_for_file_reload": true

Change or disable modifier key (alt) which activates the application menubar in Sublime Text 3 Linux

I am trying to use the package "Alternate VIM Navigation" in ST3 on Linux Ubuntu, but the alt+i and alt+h keybindings bring up the find and help menus rather than their movement keybindings:
{ "keys": ["alt+i"], "command": "move", "args": {"by": "lines", "forward": false}},
{ "keys": ["alt+h"], "command": "move_to", "args": {"to": "bol", "forward": true}},
I have been able to disable the alt key from displaying the application menubar using CompizConfig Settings Manager, but the alt+i still brings up the find menu (and likewise for alt+h).
I have looked in many places for an answer to this, but have found nothing that works for ST3 in Linux. Here are some related answers for OSX and Windows, and an answer in Ubuntu that suggests the CompizConfig Settings Manager:
https://askubuntu.com/questions/553687/change-or-disable-modifier-key-alt-which-activates-the-application-menubar
Change behavior of Alt key in Sublime Text 2
Stop Alt key bringing up the menu in Sublime Text 2
Any solution to this in ST3 for Linux would be much appreciated!
This worked for me:
Open Sublime's packages directory by going to Preferences > Browse Packages.
Open the User directory and create a file called Main.sublime-menu
Paste the following in:
[
{
"caption": "Help",
"mnemonic": "",
"id": "help"
}
]
Save the file and enjoy!
I found a bit of a strange workaround...
I have a sublime text package called "SubRed" which has a file "Main.sublime-menu" (it's in .config/sublime-text-3/Packages/SubRed - I manually installed the package).
To disable the menubar all I have to do is:
ctrl+shift+p view: toggle menu (which does not disable the menu by
itself for some reason),
open the Main.sublime-menu file in sublime,
save it.
Then voila, the menu bar is gone and I can finally use my Alternate Vim package key bindings without conflicting with the alt+[menubar mnemonic].
To get the menu bar back if needed, just simply do ctrl+shift+p view: toggle menu.
If anyone could suggest a better solution based on this (which doesn't involve a random 3rd party package) that would be much appreciated!
The ideal solution would be to not have to disable the menubar, but get it to work like windows where user or package defined st3 keybindings take precedence over default or system bindings. So if "alt+i" is defined by the package as "move up a line", then it no longer opens the "Find" menu, but actually (eureka!) moves up a line! But opening the "Find" menu is still possible with "alt, i" in sequence.

Resources