Giter Site home page Giter Site logo

evil-org's People

Contributors

adrianstaniec avatar adrieankhisbe avatar avendael avatar behaghel avatar dschoepe avatar edwtjo avatar fwilk avatar somelauw avatar swaroopch avatar wsdookadr avatar xfq avatar yukihr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

7696122 chiasung

evil-org's Issues

org-forward-sentence and org-backward-sentence don't work well in evil.

Parentheses (round brackets) are currently bound to org-forward-sentence and org-backward-sentence, which work well in tables, but are not so great on sentences.

Steps to reproduce

Config

(setq evil-move-beyond-eol nil) ; I think this is the default

Failing example

'$' denotes end of line, but is not part of text. This is done to make clear that the first line ends in a space, but the second line doesn't.

First sentence on which the point starts. $
Second sentence, which can be reached by pressing ) twice.$
Third line, which can't be reached by pressing ) again.$

Proposed solution

Parentheses should fall back on evil-forward/backward-sentence-begin when not in table.

some compilation errors that may be useful to report

After just updating I got the following compilation errors, and I thought it might be helpful to report them in case they somehow only show up on my end.

Cheers :)

evil-org.el:120:17:Warning: reference to free variable
    ‘evil-surround-operator-alist’
evil-org.el:120:17:Warning: assignment to free variable
    ‘evil-surround-operator-alist’

In evil-org-return:
evil-org.el:291:32:Warning: ‘org-return-indent’ is an obsolete function (as of
    Org 9.4); use ‘org-return’ with INDENT set to t instead.

In evil-org-generic-open-links:
evil-org.el:465:32:Warning: reference to free variable
    ‘org-link-search-failed’

In end of data:
evil-org.el:820:1:Warning: the following functions are not known to be
    defined: obsolete, evil-org-org-insert-heading-respect-content-below,
    evil-org-org-insert-todo-heading-respect-content-below,
    evil-org-org-insert-todo-heading-below,
    evil-org-org-insert-todo-subheading-below,
    evil-org-org-insert-heading-below, evil-org-org-insert-subheading-below

Paragraph handling needs improvement

Evil automatically tries to use the major mode definition of a paragraph, but the result of ap or ip often leads to unexpected results in org-mode.

for example try pressing "vap" in the following situation where '|' is point.

|first
* heading
here
``

evil-org-delete breaks evil-surround

When evil-org is enabled in a buffer, evil-surround's surround-delete stops working.

Without evil-org, the shortcut ds (delete surround) deletes the specified delimiters:
(| is cursor)
-- {somet|hing}
ds}
something

When evil-org is enabled, ds does not behaves as expected.

It apperrs that s enters evil-surround-edit with a parameter other then 'delete . It wants to add a surround and expects a movement to know which region to surround.

one { t|wo } three

next paragraph

ds} (understands } as paragraph movement )
} (now it with {} up to the next paragraph

one { t{wo } three
} 
next paragraph

Screencast:
output

init.el :

(package-initialize)

(require 'evil)
(require 'evil-org)
(require 'evil-surround)

(evil-mode 1)
(global-evil-surround-mode 1)

Package versions (installed from melpa):

  • evil-org-20171107.1159
  • evil-surround-20171127.910
  • evil-20171126.659
  • undo-tree-20170706.246
  • goto-chg-20170917.1200

x and X bindings don't respect kill-ring

For example if in the following case | denotes the pointer location:

|hello

Pressing "x" in normal mode should store the 'h' in kill-ring:

|ello

Now pressing "p" should give:

e|hllo

But that doesn't work, because the 'h' wasn't stored in kill-ring.

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.