Skip to content

Commit

Permalink
Adds current directory when running init.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyjarrett committed Apr 23, 2022
1 parent 62de47f commit 88e658c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ Types of changes:

## [0.0.7]

- ✅ Preliminary mac support.
- 🛠️ Fix some linux issues.
- ✅ Added useful startup commands to .septum/config when running `init`
- ✅ Added preliminary mac support.
- 🛠️ Fixed some linux issues.

## [0.0.6]

Expand Down
7 changes: 7 additions & 0 deletions src/common/sp-config.adb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ package body SP.Config is
Ada.Text_IO.Put_Line (File, "enable-line-numbers");
Ada.Text_IO.Put_Line (File, "enable-line-colors");
Ada.Text_IO.Put_Line (File, "set-max-results 200");
declare
Current_Dir : constant String := Ada.Directories.Full_Name(Ada.Directories.Current_Directory);
begin
Ada.Text_IO.Put_Line (File, "add-dirs " & Current_Dir);
exception
when Ada.Directories.Use_Error => null;
end;
Ada.Text_IO.Close (File);

-- Compiler bug?
Expand Down

0 comments on commit 88e658c

Please sign in to comment.