Skip to content

Commit b89dfe7

Browse files
committed
Add 'Go To File' documentation and update content type definitions
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent cad8ccf commit b89dfe7

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

.astro/astro/content.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ declare module 'astro:content' {
152152

153153
type ContentEntryMap = {
154154
"docs": {
155+
"browsers/goToFile.mdx": {
156+
id: "browsers/goToFile.mdx";
157+
slug: "browsers/gotofile";
158+
body: string;
159+
collection: "docs";
160+
data: InferEntrySchema<"docs">
161+
} & { render(): Render[".mdx"] };
155162
"browsers/ifs-browser.mdx": {
156163
id: "browsers/ifs-browser.mdx";
157164
slug: "browsers/ifs-browser";

.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1733244418615
3+
"lastUpdateCheck": 1737379639185
44
}
55
}

src/assets/goToFile.png

131 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Go To File
3+
---
4+
5+
There is a fast way to navigate to source memebrs and streamfiles through VS Code without using the Object Browser or IFS Browser. This is done by using the `IBM i: Go to File` feature.
6+
7+
![Browsers](../../../assets/goToFile.png)
8+
9+
To use the `Go To File` feature, press `Ctrl+Alt+P` or `Cmd+Option+P` on Mac. This will open a dialog box where you can type the name of the file you want to open. The dialog box will show a list of files that match the name you typed. You can use the arrow keys to navigate through the list and press `Enter` to open the file. You can also paste in a source member path or IFS path.
10+
11+
* Source member: `LIB/SRCPF/SRCMBR.EXT`
12+
* Streamfile: `/path/to/file.txt`
13+
14+
The list will also have previously opened files listed at the top, and a small available list below it (titled Cache).
15+
16+
### Finding source members
17+
18+
The Go to File tool also has a way to search libraries and source files for a member.
19+
20+
1. To find source files, enter the library name followed by a slash and an asterisk. For example, `MYLIB/*` will show all source files in the MYLIB library.
21+
2. To find members in a source file, enter the source file name followed by a slash and an asterisk. For example, `MYLIB/SRCPF/*` will show all members in the SRCPF source file in the MYLIB library.

0 commit comments

Comments
 (0)