Boundary sensitive Cmd+D in Sublime Text - sublimetext2

I'm using Sublime Text 3 on OSX.
Using cmd + D, I want to select the next instance of es but not if it's part of another word
Given this code
I select the first instance of es and see this
Perfect! However, when I tap cmd + D a couple times, it will end up selecting this
Super annoying!
How can I make cmd + D only select the highlighted sections that appear in image 2?

If you select whole word and press Cmd + d it is going to select like in 3rd image. If you put your cursor (caret) on the word but not select it and then press Cmd + d it is going to select like in 2nd image.
For Windows just change Cmd + d to Ctrl + d

It works as in image 2 by default, at least for me. Do you have the following key mapping?
{ "keys": ["ctrl+d"], "command": "find_under_expand"},...
You could also try reverting to a freshly installed state.

Related

Pyautogui: Can I insert text at the current cursor position using a keyboard shortcut?

In Pop!_os 21.10 I created a keyboard shortcut in the settings panel 'ctrl'-'/' to run python3 /home/dg/scuts/p2-pyautogui.py
In /home/dg/scuts/p2-pyautogui.py I used the following:
import pyautogui, time
time.sleep(0.3)
pyautogui.write("el0 n 123. 12345", interval=0.005)
In gedit, I try to run this.
If I press 'ctrl'-'/' and quickly release the ctrl key it works.
If I hold down the control key too long after pressing /, it seems to execute 'ctrl'-'n' and open a new gedit window. Sometimes I get the emoticon input window, which I think is 'ctrl'-'.'
I want to make it more mistake-proof for entering text like date-time for example using a hotkey combination.
What am I doing wrong?

Duplicate the current line in octave

Is there any Method to duplicate the one line of code in octave GUI. Like in eclipse if we want to duplicate a code of line such as:
int a = 5;
We can press Ctrl+Alt+Down to copy it to the next Line.
So is there any shortcut to do this in octave GUI.
Move the cursor to the line you want to duplicate, press CTRL and then d together
TL;DR: Ctrl+D

Search within files in search result in Sublime

I often use Sublime Text 2's search all open files/folders feature (CMD+SHIFT+F).
Is it possible to perform a second search that only queries files which contain the first search query?
For example: Search 1 finds 5 files that contain "hello". Search 2 should only query those same 5 files for "world", so the resulting matches will be files which contain both "hello" and "world".
I can search the text which is visible in the results buffer (such as in the screenshot below), but I'd like to search the entire contents of all files that are shown in the results buffer.
1:
Open the find_in_files panel with Ctrl + Shift + F.
In the example, <open folders> is used for the Where: argument, but you can use whatever fits your initial search criteria.
2:
Open the find panel with Ctrl + F while you are still in the results buffer.
Enter ^(/Users/.*)(?=:$) as your Find: argument, and make sure the RegEx switch is enabled. This RegEx pattern will match all of the paths within the results.
( Windows users can enter ^(C:\\.*)(?=:$) )
Copy the selected paths.
3:
Paste the copied paths into a blank document.
Open the replace panel with Ctrl + H.
Enter ^(/Users/.*)(\n) as the Find What: argument, and $1$2,  as the Replace With: argument. This will effectively convert all of the lines into a single line of comma separated values.
( Windows users can enter ^(C:\\.*)(\n) )
Copy the resulting line.
4:
Open the find_in_files panel with Ctrl + Shift + F.
Paste the copied path list as your Where: argument, and enter your second query as the Find: argument.
5:
Repeat as necessary.

How to search multiple files of specific file type within Sublime Text 3

I would like to search for a string within all *.php files in a certain directory (and its sub-directories) using the Shift + Ctrl + F search dialog.
My guess was to set the search location to:
c:\example\*.php
but that gives an error:
Unable to open c:\example\*.php
Is there a way to perform the search I'm hoping to perform?
C:\example,*.php
In the Where: click ..., select Add Folder, after that select Add Include Filter

All column names in my view are underlined in red in SSMS

I created the view View_DefectDaysOutstanding3. when I select to see the data, it gives the data, but why in the select statement all the fields are underlined in red as error?
SELECT TOP 1000 [ID]
,[Severity]
,[AvgDaysOutstanding]
,[ReportMonth]
,[ReportYearMonth]
,[#OfBugs]
,[projid]
,[folderid]
FROM [SoftwarePlanner].[dbo].[View_DefectDaysOutstanding3]
order by ReportYearMonth
Have you refreshed your Intellisense cache?
Keyboard shortcut:
Ctrl + Shift + R
Or, using the menu: Edit -> IntelliSense -> Refresh Local Cache
Go to Edit > IntelliSense > select "Refresh Local Cache".
You need to refresh your cache after you create new tables/add columns/ new views etc