Coder Social home page Coder Social logo

all-the-icons-ivy's People

Contributors

a13 avatar asok avatar emacsomancer avatar terlar 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

Watchers

 avatar  avatar

all-the-icons-ivy's Issues

display correct icon for directories

Observed:
counsel-find-file displays some incorrect generic icons for directories:
image

Expected: Detect when candidate is a directory and use (all-the-icons-octicon "file-directory") icon.

Directory symbol doesn't show up as in all-the-icons

I noticed that a directory symbol in all-the-icons-ivy shows is as a blank page symbol that is flipped on the corner. Which is completely different from the regular directory symbol which shows up in all-the-icons.
Is that expected?

Causes emacs crash

Software versions
emacs: github emacs-26 branch (Labeled 26.1 - current)
ivy: 2018040.1858 (Melpa latest)
all-the-icons: 2018.0125.757 (Melpa latest)
all-the-icons-ivy: 20180225.630 (Melpa latest)

Code used:

(require 'all-the-icons-ivy)
(ivy-set-display-transformer 'ivy-switch-buffer 'all-the-icons-ivy-buffer-transformer)

Calling ivy-switch-buffer crashed emacs with a segmentation fault

How can I enable this in Projectile's Ivy?

I tried this

  (setq all-the-icons-ivy-file-commands
	'(counsel-find-file
	  counsel-file-jump
	  counsel-recentf
	  projectile-find-file
	  projectile-find-dir))

but it didn't work.

Inconsistent spacing

Hi,

there are some (minor) problems with all-the-icons-ivy on my machine.

Some entries are not iconified, and it is seems that this breaks the formatting, as you can see in the following screenshot.

2019-03-04 08 37 23

Maybe this could be solved by having a generic icon for everything which has no specific icon.

Moreover, it also seems that the height of each entry is inconsistent. This is especially clear when you look at the highlighted region, which varies in height depending on the icon. For instance, in the previous screenshot, the white space is not balanced in the selected entry.

(I am aware that these are very fine details, and maybe they bother only me.)

Thanks,
sbozzolo

Conflict with ivy-rich

First of all, I would like to thank you for your work for the community.

Recently I tested your package and I found that when I use it, then I lose all the other information that ivy-rich can provide me. Indeed, on the left side of the image, we can see that the buffer language and other information have disappeared in favour of the icon.

2019-03-04_16 02 21

If it can help, this is how I configure ivy-rich and all-the-icons-ivy packages:

(use-package ivy-rich
  :after ivy
  :custom
  (ivy-virtual-abbreviate 'full
                          ivy-rich-switch-buffer-align-virtual-buffer t
                          ivy-rich-path-style 'abbrev)
  :config (ivy-rich-mode 1))

(use-package all-the-icons-ivy
  :after (all-the-icons ivy)
  :custom (all-the-icons-ivy-buffer-commands '(ivy-switch-buffer-other-window))
  :config
  (add-to-list 'all-the-icons-ivy-file-commands 'counsel-dired-jump)
  (add-to-list 'all-the-icons-ivy-file-commands 'counsel-find-library)
  (all-the-icons-ivy-setup))

Do you have any idea how to fix this issue?

Slows down TRAMP tremendously

When I enable all-the-icons-ivy suddenly TRAMP operations take 3-4x longer, as it seems emacs repeatedly accesses the remote system. I can comment out all-the-icons-ivy and find-file and friends works almost instantly.

Configurable spacer

It would be great to be able to configure the spacer between icons and text by a variable. The default could still be a tab "\t" but with my current emacs theme, a simple space " " looks much better. At the moment I have to replace 2 functions to do so, which is not ideal :-)

all-the-icons-ivy requires after-init hook to work

As titled, from my experience in order for all-the-icons-ivy to work as expected, the setup needs to be done in an after-init hook. I suspect this is to prevent being overridden by other configs such as ivy-posframe.

Consider chainging the documentation for configuration to:

(use-package all-the-icons-ivy
  :hook (after-init . all-the-icons-ivy-setup))

Update display of directories

Hello,

I think the ivy function returning icon for files can be updated according to the recent function all-the-icons-icon-for-dir, see here.

I suggest to go from

(defun all-the-icons-ivy-icon-for-file (s)
  "Return icon for filename S.
Return the octicon for directory if S is a directory.
Otherwise fallback to calling `all-the-icons-icon-for-file'."
  (cond
   ((string-match-p "\\/$" s)
    (all-the-icons-octicon "file-directory" :face 'all-the-icons-ivy-dir-face))
   (t (all-the-icons-icon-for-file s))))

to

(defun all-the-icons-ivy-icon-for-file (s)
  "Return icon for filename S.
Return the octicon for directory if S is a directory.
Otherwise fallback to calling `all-the-icons-icon-for-file'."
  (cond
   ((file-directory-p s)
    (all-the-icons-icon-for-dir s :face 'all-the-icons-ivy-dir-face))
   (t (all-the-icons-icon-for-file s))))

This is what is currently implemented in all-the-icons-dired, see here. It gives nice icons for special directories.

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.