Skip to content
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

Suggestion - Organize (ns) - 0.1.04 #77

Closed
hlship opened this issue Oct 29, 2013 · 4 comments
Closed

Suggestion - Organize (ns) - 0.1.04 #77

hlship opened this issue Oct 29, 2013 · 4 comments
Labels
new Marks issues describing new features released Marks issues which have had the fixes released in a stable build
Milestone

Comments

@hlship
Copy link

hlship commented Oct 29, 2013

Functionality for "organizing" the (ns) declaration would be nice, comparable to the Java Imports support ... or at the very least, doing the require's into alphabetical order, and perhaps merging related ones together.

e.g.

(ns 'my.namespace
  (require [foo.bar.baz :as baz]
             [biff.bop :as bop]
             [foo.bar.gnip :as gnip]))

to

(ns 'my.namespace
  (require [biff.bop :as bop]
              [foo.bar 
                [baz :as baz] 
                [gnip :as gnip]]))
@cursive-ide
Copy link
Owner

That'll have to be configurable - I for one prefer an explicit list of all namespaces in full. But yes, some sort of organise imports would be great.

@ricardojmendez
Copy link

I was about to request this enhancement as well. There doesn't seem to be a way to vote on issues in Github, so pleas consider this a +1 to the request. At the very least, being able to sort them alphabetically would be great.

@danielcompton
Copy link
Collaborator

There's some good test cases in Storm, e.g. https://github.com/apache/storm/blob/v0.9.5/storm-core/src/clj/backtype/storm/util.clj

@ertugrulcetin
Copy link

@hlship @ricardojmendez I was also looking for this feature and wrote a lein plugin for that: https://github.com/ertugrulcetin/lein-nsort

@cursive-ide cursive-ide modified the milestones: Shortlist, 1.12.2-eap3 Feb 13, 2022
@cursive-ide cursive-ide added the new Marks issues describing new features label Feb 13, 2022
@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new Marks issues describing new features released Marks issues which have had the fixes released in a stable build
Projects
None yet
Development

No branches or pull requests

5 participants