Coder Social home page Coder Social logo

algia's Introduction

Hey ๐Ÿ‘‹, I'm mattn

Github

I โค Open Source. I love Vim and Go.

  • Long-time Golang user&contributor
  • Google Dev Expert for Go
  • Author of many Go tools
  • Vim plugin author (emmet-vim, vim-gist, vim-lsp-settings, etc)
  • Windows hacker

I'm looking for GitHub sponsors.

Top Langs mattn's github stats

@mattn's Holopin board

algia's People

Contributors

bndw avatar dag7dev avatar fiatjaf avatar jundow avatar mattn avatar ohac avatar shinoharata avatar yuhr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

algia's Issues

cannot use path@version syntax in GOPATH mode?

$ go version
go version go1.15.15 linux/arm64
$ uname -a
Linux 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
$ go install github.com/mattn/algia@latest
package github.com/mattn/algia@latest: cannot use path@version syntax in GOPATH mode

Config dir on macOS

Minimal configuration. Need to be at ~/.config/algia/config.json

On macOS this actually defaults to $HOME/Library/Application Support/algia/config.json as per os.UserConfigDir, which is not ideal.

I think the most straightforward way to get macOS clients to use the ~/.config dir is to replace os.UserConfigDir with a 3rd party package like github.com/mitchellh/go-homedir. If this is an acceptable solution let me know - I'd be happy to submit a pull request.

invalid separator index 66

Cheers,

I've cloned the repo, run make, copied the config to the proper location and updated it for use in my project.

However, every algia command returns invalid separator index 66

Any ideas?

Initializing ev.Tags with nostr.Tags{} in case of tag is empty when publishing an event at doPost function

In doPost function, ev.Tags may need to be initialized with nostr.Tags{ }.

If no tags were added to the event object, the ev.Tags was nil.
I observed many of relays reject event objects when it was nil.

To resolve this, initializing ev.Tags with nostr.Tags{ } (an empty array of array) worked for me.

I would suggest to add this line,

ev.Tags = nostr.Tags{ }

before the line 260 in "timeline.go."

/*Line 260: func doPost in timeline.go*/
	for i, u := range cCtx.StringSlice("u") {
		ev.Content = fmt.Sprintf("#[%d] ", i) + ev.Content
		if pp := sdk.InputToProfile(u); pp == nil {
			return fmt.Errorf("failed to parse pubkey from '%s'", u)
		} else {
			u = pp.PublicKey
		}
		ev.Tags = ev.Tags.AppendUnique(nostr.Tag{"p", u})
	}
/*the function goes on...*/

If ev.Tags is nil, the corresponding part in the parsed JSON will be nil.
If initialized with nostr.Tags{}, it will be "[]".

add example command

I am trying to use your client, however it says "string not all lowercase or all uppercase".

I am typing "algia timeline".

Can you provide some simple example in the readme?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.