I know that I can use 'Ctrl + p' to find file and open it. But it search file in all projects. What is the way to search file only in current project?
The Ctrl+P key binding opens what is known as "GoTo Anything". The Sublime Text Unofficial Documentation on GoTo Anything states (emphasis added):
As you type into Goto Anything’s input area, names of files in the current project will be searched, and a preview of the best match will be shown.
Further down in the documentation in the "Sidebar" section it states:
The sidebar provides an overview of the active project (more on projects later). Files and folders in the sidebar will be available in Goto Anything and project-wide actions like, for example, project-wide searches.
Projects and the sidebar are closely related. It’s important to note that there’s always an active project, whether it’s explicit or implicit.
I would bet that your current active Sublime project includes files which should be moved to a separate (explicit) project and that is why they are being included in the search results contrary to your desire. To learn more about projects, read even further down in the documentation in the section titled "Projects".
Maybe you can try this one: Shift+Command+F, then you can enter search keyword as follows:
Find: Please enter search keyword
Where: Select the project location
Related
I'm new to Hammerspoon, but interested in automating some macOS workflows with it.
Many examples seem to directly access functions provided by a target application itself - but how does one find out which functions are provided and how they have to be used?
Thanks in advance for any help!
since I may have found an answer myself (or s.th. which comes close to it) let me summarize it here:
Script Editor
One possible approach may be to exploit the built-in macOS "Script Editor" (to be found in folder "Applications" > "Utilities").
Just open the "Script Editor" and - from the menu - choose "Window" > "Library". This will give you a list of automatable applications. Double-clicking on any of these applications will give you a documented list of methods and properties that application provides.
By default, the documentation will use AppleScript syntax - it may be useful to switch to JavaScript using the dropdown just below the window's title bar instead.
Right now, I have no idea if the list (of applications and/or provided properties and methods) is complete or not.
Additionally, you will need a little bit of "fantasy" to map AppleScript/JavaScript definitions to Lua...
I found this recipe in an "DevOps Zone" article
Script Debugger (Lite)
An alternative seems to be the "Script Debugger" from "Late Night Software" - the free "Lite" version seems to be sufficient.
From the menu, simply choose "File" > "Open Dictionary" for an (already open) application of your choice. The "Preview Dictionary" window will then show you a list of all properties and methods provided - and the "Explorer" tab will allow you to inspect them.
I have recently been asked to take over the administration of a website that is built on CakePHP 3.x.
I have never worked with CakePHP before. Everything I have read talks about using a command line interface, but I haven't done this since I was in Uni.
I discovered a Dashboard on the website where I can enter or edit the products, but I was wondering about the pages on the site.
I had to change some phone numbers in the footer of each page and it was only hunting through the files that I found src/Template/Element/footer.ctp and edited this.
Is there some way of editing the pages without finding the individual files?
No. What you're referring to (the command-line stuff) is for when you're baking files, running shell tasks, doing database migrations, installing things via composer, or using the built-in local server...etc. There are other uses too, but editing front-end files is not usually one of them.
Though there are methods for altering local files via command line, for the things you're talking about, like editing a footer, or other pages (.ctp "Template files" in Cake 3), it's standard practice to just do that manually.
See the standard path for template files in these examples:
src/Template/Users/profile.ctp
src/Template/Pages/contact.ctp
src/Template/Layout/default.ctp
A "layout" file usually fetches the header, content, and footer.
As you've found, there are also Elements, which are smaller chunks of code that are reusable across one or more Template files.
I am attempting to find an elegant solution to an issue for another department within my agency, and I am hoping somebody can provide me with a path to discovering the right solution.
The problem: The user currently has large number of links which (A) deliver the user to a page within the document, and then (B) open a web link. The Link Properties are currently as follows:
There are a large number of links within this document which point to the same place (frustratingly, this is simply how they've decided to do it, and there is no swaying them in that regard), and many times, the text pointing to the link is different (i.e. "visit this link" and "refer to form 10-a for more info" both point to the same URL).
What I would like to do for them is provide them with some sort of search & replace function, or a batch process of some kind, which will search the link properties for all existing links in any given document, allow them to input the currently existing URL, and replace it with another URL of their choice. As it currently stands, they must edit each link manually, which poorly impacts their manhours.
I have been all through Adobe's help materials, and while I found them to be useful in other tasks I might wish to do, I'm not seeing a way to specifically address the issue of searching and replacing Actions within a Link Properties. I would be rather surprised if this was not something that Adobe will allow me to do, and I am fairly certain I'm simply not finding a way to articulate my need in a search engine friendly way that will find what I am looking for.
One caveat: if no solution exists within Adobe itself, a third party tool is not an option. I work for a government agency, so nifty third party tools are strictly forbidden.
With Adobe Acrobat and only Acrobat, assuming that 3rd party plugins have the same restrictions as other software, the only API you have at your disposal is Acrobat JavaScript and unfortunately, JavaScript can't interrogate the link to find it's properties, it can only set them or reset them.
I want to know what is the best and common way to write SDK blog in drupal.
Write the blog directly to new content type in drupal.
Write and design the blogs in word document (or something similar), and later, with process (module that I will write) load all the docs into content type.
Other.
Your best bet is to enter your blog entries directly into Drupal -- like you said into whatever content type you're using for your blogs! If that's an option you (or whoever the blog author(s) may be) are willing to do, better get used to it at the beginning.
There are several problems you may run into if you're choosing to create your content outside of Drupal and pasting it in after the fact. At the minimum I can now think of the following two:
Folks can run into formatting issues when Word styles are copied and pasted into the Drupal editor of your choice (even though there are 'Paste from Word' options for some of the editors). Especially if there are multiple authors and some adhere to proper copying and pasting, while others don't, you can end up with posts that have different font sizes, font styles, etc and that can make the site look less professional. I'd suggest always creating the content within the Drupal editor, regardless of the scenario. However, that is particularly true when there are multiple authors creating content outside the Drupal editor (for example in Word) and pasting it in after the fact. With multiple folks, training and adherence to best practices can become more of an issue. To see formatting problems, give it a test yourself: create some fancy, styled content in Word (not just plain paragraphs or it won't really be that interesting) and paste it into CKEditor or whatever else you're using. Then inspect the html code that results using the 'Source' button on the editor. Don't use 'Paste from Word' option that usually helps.
If you have images in your posts, you won't be able to just copy and paste them into the Drupal editor from Word... you'd still have to upload the image and insert it into the post the Drupal way
So, rather than creating the content once, copying and pasting it and potentially having to do a ton of clean-up after the fact, just get used to creating it in Drupal!
Then -- as your blog grows and you potentially add to it (additional fields, additional features), you'll be able to more fully take advantage of your Drupal environment if your workflow doesn't include an outside program like Word in it!!
I was doing a checkout of a file in ClearCase, and I was unable to checkout this file from the frozen view because of this file which was a bleed-thru file. I thawed the view, and then I was able to check out the file, so I really do not have a problem at this time.
I do have a question, though. What is a bleed-thru file in ClearCase? Any ideas? I have not heard this term before, and was interested, partly because it just sounds so cool!
Not sure what you call a "frozen view", except if you are referring to a snapshot view.
A "bleed-through" file (again, I am not familiar with the 'bleed-thru' spelling) could be related to multi-site views, where:
This navigator is called a "bleed through" view because it lists both local files/members and remote objects, files and members.
However, if a file or member exists both locally and remotely, it is not shown twice.
Rather, it is only shown once, and its icon and bracketed text identify it as existing in both places.
If you have any screen captures of that term used in ClearCase, I am interested;)