Coder Social home page Coder Social logo

direx's People

Contributors

aki2o avatar delxg avatar m2ym avatar syohex avatar tarsius avatar thomasf avatar tkf 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

direx's Issues

Direx not working, cl-call-next-method only inside primary and around methods

Setup:

GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
of 2015-07-25 on KAEL

Compiled from EmacsW64.

Direx, using the latest version of Direx from MELPA

Windows 7 x64 bit.

Situation:

I would like to try this package. When I installed Direx, I try to start it wih M-x Direx:jump-to-directory but I get a unclear message:

cl-call-next-method: cl-call-next-method only allowed inside primary and around methods

When googling around, I found this thread but it's difficult to understand how this error occured in a package. It's more related with common Lisp than the package itself, it seems.

When I tried again with the empty Emacs configuration (emacs -q), I still get the same message. It's unclear to me what I do need to solve this error, in order to get Direx working.

Any suggestion would be appreciated.

Typo: "hightlight" -> "highlight", line 255 of direx.el...?

It seems that unless I change "hightlight" to "highlight" on line 255 of direx.el in function, I get many of the following messages: "Invalid face reference: hightlight" - unless I'm misunderstanding something, this looks like a typo (although I'm not an emacs expert...).

I'm running on Ubuntu 18.04 (Emacs 25.2.2 under VirtualBox on Windows, and 26.1 on WSL for Windows 10).

Emacs crashes on left click

Whenever I left click on an item in Direx, emacs crashes with a fatal error 6. I am using Ubuntu 14.04 with GNOME 3. Let me know if there is any other information that would be useful.

Default key binding about C-M-<right>

Should the key sequence C-M-<right> be bound to direx:down-item, by any chance?

Because I thought that

(define-key map (kbd "C-M-d")       'direx:down-item)

is opposite to

(define-key map (kbd "C-M-u")       'direx:up-item)

then,

(define-key map (kbd "C-M-<right>") 'direx:up-item)

shouldn't be equivalent to

(define-key map (kbd "C-M-<left>")  'direx:up-item)

If the default binding is unintended, it may not be intuitive.
In my case, I've overwritten the key binding.

Thank you for your consideration.

Adding some Hook

I'm using global linum mode, so when I open direx, the line number appears. To avoid this I usually use a hook. However after having a quick overview of the source, I didn't found any.
Adding a basic hook to direx woul enable to do this, and any other similar functionnality.
(I would have fork and done it if I knew where best would it be to put it)

emacs 29 compat

Debugger entered--Lisp error: (void-function defgeneric)
  (defgeneric direx:tree-equals (x y) "Returns t if X is equal to Y.")
  load-with-code-conversion("/home/starenka/.emacs.d/elpa/direx-1.0.0/direx.el" "/home/starenka/.emacs.d/elpa/direx-1.0.0/direx.el" t t)
  require(direx nil t)
  (not (require 'direx nil t))
  (if (not (require 'direx nil t)) (display-warning 'use-package (format "Cannot load %s" 'direx) :error) (condition-case err (progn (add-hook 'direx:direx-mode-hook #'(lambda nil (nlinum-mode -1) (set (make-local-variable ...) nil))) t) ((debug error) (funcall use-package--warning11 :config err))))
  (condition-case err (if (not (require 'direx nil t)) (display-warning 'use-package (format "Cannot load %s" 'direx) :error) (condition-case err (progn (add-hook 'direx:direx-mode-hook #'(lambda nil (nlinum-mode -1) (set ... nil))) t) ((debug error) (funcall use-package--warning11 :config err)))) ((debug error) (funcall use-package--warning11 :catch err)))
  load-with-code-conversion("/home/starenka/.emacs.d/global.el" "/home/starenka/.emacs.d/global.el" nil nil)
  load-file("/home/starenka/.emacs.d/global.el")
  load-user-file("global.el")
  load-with-code-conversion("/home/starenka/.emacs.d/init.el" "/home/starenka/.emacs.d/init.el" t t)
  load("/home/starenka/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode -0x1987cf5d2cfae12b>) #f(compiled-function () #<bytecode -0x1f3c6feddc0bc175>) t)
  command-line()
  normal-top-level()

using GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-10-31, unofficial emacs-snapshot build: http://emacs.secretsauce.net

// edit
just using cl-prefixed variants of defmethod & defgeneric as suggested in emacs 29 changelog

** Support for old EIEIO functions is not autoloaded any more.
You need an explicit '(require 'eieio-compat)' to use 'defmethod'
and 'defgeneric' (which have been made obsolete in Emacs 25.1 with
'cl-defmethod' and 'cl-defgeneric').
Similarly you might need to '(require 'eieio-compat)' before loading
files that were compiled with an old EIEIO (Emacs<25).

will spawn more problems, which are far behind my lisp-fu

Typo in direx:item-render-name-part

Hi,

I think line 255 contains a typo.
it should be
'mouse-face 'highlight
instead of
'mouse-face 'hightlight.
This also stops producing the Message "Invalid face reference: hightlight" on hovering the direx-entries.

Best regards
schabilly

direx:previous-item ignores prefix arg?

Hello, thanks for awesome elisp.

It seems to me that direx:previous-item ignores whatever prefix argument i pass in. On the other hand, direx:next-item properly handles it and moves the cursor that many. Is this a bug or a feature?

Support for viewing a git repo tree.

Instead of using the file system traversal for building the tree, this option would delegate getting the files from a function that would return the output of "git ls-files".

Sort order

For some reason sort order of directory content on my machine is always wacky.
image
How can I fix this? Generally I would probably prefer dirs first; files after - sorted alphabetically, dotfiles first

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.