Skip to content

Commit 55d3a78

Browse files
authored
Merge pull request #70 from edersohe/develop
fix(config): update init.conf file references to config.toml, fixes: #67
2 parents da57f60 + 16aa186 commit 55d3a78

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ ensure-mountpoint:
4949

5050
.PHONY: backup-current-config
5151
backup-current-config: ensure-mountpoint
52-
[ -f $$HOME/.ad/init.conf ] && mv $$HOME/.ad/init.conf $$HOME/.ad/init.conf.bck || true
52+
[ -f $$HOME/.ad/config.toml ] && mv $$HOME/.ad/config.toml $$HOME/.ad/config.toml.bck || true
5353

5454
.PHONY: backup-current-plumbing
5555
backup-current-plumbing: ensure-mountpoint
5656
[ -f $$HOME/.ad/plumbing.rules ] && mv $$HOME/.ad/plumbing.rules $$HOME/.ad/plumbing.rules.bck || true
5757

5858
.PHONY: copy-default-config
5959
copy-default-config: ensure-mountpoint backup-current-config
60-
cp data/init.conf $$HOME/.ad
60+
cp data/config.toml $$HOME/.ad
6161

6262
.PHONY: copy-default-plumbing
6363
copy-default-plumbing: ensure-mountpoint backup-current-plumbing
6464
cp data/plumbing.rules $$HOME/.ad
6565

6666
.PHONY: copy-rust-config
6767
copy-rust-config: ensure-mountpoint backup-current-config
68-
cp data/init-rust.conf $$HOME/.ad/init.conf
68+
cp data/init-rust.conf $$HOME/.ad/config.toml
6969

7070
.PHONY: copy-bin
7171
copy-bin: ensure-mountpoint

data/help-template.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ If you have the 9p(1) command line utility installed you can use it to explore t
269269
9p ls ad/buffers/1
270270
9p read ad/buffers/1/dot
271271

272-
If you have the fusermount(1) and 9pfuse(4) programs installed then you can set the "auto-mount"
273-
property in ~/.ad/init.conf to true and mount the filesystem directly at ~/.ad/mnt when ad starts.
272+
If you have the fusermount(1) and 9pfuse(4) programs installed then you can set the "auto_mount"
273+
property in ~/.ad/config.toml to true and mount the filesystem directly at ~/.ad/mnt when ad starts.
274274
The default scripts provided in the ad GitHub repo serve as a useful reference for the sorts of
275275
interactions that are possible through this interface:
276276

data/regression/edit-landing-on-gap-end.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pwd -- print the current editor working directory
1919
q | quit -- quit ad as long as there are no buffers with pending changes
2020
q! | quit! -- quit ad discarding all pending changes for open buffers
2121
reload-buffer | Get -- refresh the current buffer's content from the state of the file on disk
22-
reload-config -- reload the editor config file located at ~/.ad/init.conf
22+
reload-config -- reload the editor config file located at ~/.ad/config.toml
2323
set -- set a config property ('set bg-color=#ebdbb2')
2424
view-logs -- open ad's internal logs in a new buffer
2525
viewport-bottom -- place the current line at the bottom of the window

docs/tour/fsys

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ interacting with ad from other programs:
1111
9p read ad/buffers/1/dot
1212

1313
- if you have the fusermount(1) and 9pfuse(4) programs installed then you can set the
14-
"auto-mount" property in ../../data/init.conf to true and mount the filesystem directly
14+
"auto-mount" property in ../../data/config.toml to true and mount the filesystem directly

examples/demos/structural-regex-reformatting.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pwd -- print the current editor working directory
2525
q | quit -- quit ad as long as there are no buffers with pending changes
2626
q! | quit! -- quit ad discarding all pending changes for open buffers
2727
reload-buffer | Get -- refresh the current buffer's content from the state of the file on disk
28-
reload-config -- reload the editor config file located at ~/.ad/init.conf
28+
reload-config -- reload the editor config file located at ~/.ad/config.toml
2929
set -- set a config property ('set bg-color=#ebdbb2')
3030
view-logs -- open ad's internal logs in a new buffer
3131
viewport-bottom -- place the current line at the bottom of the window

src/editor/built_in_commands.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn built_in_commands() -> Vec<(Vec<&'static str>, &'static str)> {
9494
),
9595
(
9696
vec!["reload-config"],
97-
"reload the editor config file located at ~/.ad/init.conf",
97+
"reload the editor config file located at ~/.ad/config.toml",
9898
),
9999
(
100100
vec!["set"],

0 commit comments

Comments
 (0)