-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spoonify Spacehammer #183
Draft
jaidetree
wants to merge
25
commits into
agzam:master
Choose a base branch
from
jaidetree:spoonify
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Spoonify Spacehammer #183
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
518bcc1
Update functional library
jaidetree fff7288
Initial spoonify
jaidetree 81cd4a5
Update imports
jaidetree fd6ee92
Make hyper binding optional if not present in config
jaidetree d43db39
Fix example config path
ambirdsall 99210e6
Fix path to activate modal fn in example config
ambirdsall 51f0ec0
Make hs.ipc.cliInstall work on M1 & co.
ambirdsall e8dd456
Merge pull request #2 from ambirdsall/spoonify
jaidetree 28b37bf
Try to get tests running
Grazfather 531d6a8
cleanup
Grazfather 5cc9a11
cleanup more
Grazfather c36aa5d
cleanx
Grazfather 374481a
more
Grazfather fdded94
Merge pull request #3 from Grazfather/fix_tests
jaidetree 21ecae6
Remove -c flag from test.lua
jaidetree 1d75ea1
Fix argument order of string.find
ambirdsall 8417c03
Update testing docs with updated paths
jaidetree 8d9f141
Extract file helper functions to lib directory
ambirdsall cb8cfa6
Move most other globals to lib/globals.fnl
ambirdsall 7a8574e
Create init.example.fnl, extract console keybind
ambirdsall 1ff7743
Remove obsolete comments
ambirdsall 61f52a1
Merge pull request #4 from ambirdsall/fix-cliInstall-conditional
jaidetree 8d2a05a
Update file helper docstrings for consistency
ambirdsall a7de87a
Merge pull request #5 from ambirdsall/extract-helpers-from-core-and-a…
jaidetree 5a0a156
Support custom paths from tools like nix
jaidetree File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
hs.alert.show("Spacehammer config loaded") | ||
local Spacehammer = { | ||
name = "Spacehammer", | ||
version = "3.0.0", | ||
author = "Ag Ibragimov", | ||
license = "MIT", | ||
homepage = "https://github.com/agzam/spacehammer" | ||
} | ||
|
||
-- Support upcoming 5.4 release and also use luarocks' local path | ||
package.path = package.path .. ";" .. os.getenv("HOME") .. "/.luarocks/share/lua/5.4/?.lua;" .. os.getenv("HOME") .. "/.luarocks/share/lua/5.4/?/init.lua" | ||
package.cpath = package.cpath .. ";" .. os.getenv("HOME") .. "/.luarocks/lib/lua/5.4/?.so" | ||
package.path = package.path .. ";" .. os.getenv("HOME") .. "/.luarocks/share/lua/5.3/?.lua;" .. os.getenv("HOME") .. "/.luarocks/share/lua/5.3/?/init.lua" | ||
package.cpath = package.cpath .. ";" .. os.getenv("HOME") .. "/.luarocks/lib/lua/5.3/?.so" | ||
function Spacehammer:init() | ||
local scriptPath = hs.spoons.scriptPath() | ||
|
||
fennel = require("fennel") | ||
table.insert(package.loaders or package.searchers, fennel.searcher) | ||
package.path = package.path .. ";" .. scriptPath .. "?.lua;" .. scriptPath .. "?/init.lua;" | ||
package.cpath = package.cpath .. ";" .. scriptPath .. "?.so;" | ||
|
||
require "core" | ||
fennel = require("spacehammer.vendor.fennel") | ||
fennel.path = scriptPath .. "?.fnl;" .. scriptPath .. "?/init.fnl;" .. fennel.path | ||
fennel['macro-path'] = scriptPath .. "?.fnl;" .. scriptPath .. "?/init-macros.fnl;" .. scriptPath .. "?/init.fnl;" .. fennel.path | ||
print(hs.inspect(package.searchers)) | ||
table.insert(package.loaders or package.searchers, fennel.searcher) | ||
end | ||
|
||
function Spacehammer:start() | ||
print(hs.inspect(package.searchers)) | ||
require('spacehammer.core') | ||
hs.alert.show("Spacehammer config loaded") | ||
end | ||
|
||
return Spacehammer |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--test.lua | ||
-- A script to run fennel files as tests passed in as cli args | ||
|
||
|
||
fennel = require("spacehammer.vendor.fennel") | ||
|
||
-- Support docstrings | ||
|
||
local searcher = fennel.makeSearcher({ | ||
useMetadata = true, | ||
}) | ||
|
||
local testRunner = require "lib.testing.test-runner" | ||
|
||
testRunner["load-tests"](_cli.args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these used at all? They'd have to be used through the fully name, and anyway we should use
import-macros
.