I'm writing a gedit plugin for gtk3. Is there an easy way to get the name of the current document using python ?
How to get name of current gedit document with python?
927 Views Asked by Stuart Axon At
2
There are 2 best solutions below
0
liberforce
On
I think you'd improve your chances of getting an answer by asking on the gedit mailing list.
There's also a GEdit python plugin howto on the GNOME wiki.
Related Questions in GTK
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Why does GTK beep when calling `gtk_entry_set_text` (while resizing a window)?
- Distributing a GTK4 Windows application
- Callback function doesn't modify widget
- getting arguments with g_signal_connect GTK4
- ValueError: Namespace Xdp not available
- How do I link gtk/gtk.h to my compiler in VSCode
- Using GTK v0.18.1 on rust to draw
- How to set transparent background for gtk_plug_new window
- GTK Cairo. Why gtk_widget_queue_draw called from function (in iddle callback) does not work?
- GTK4 Window Created from XML, Closes Immediately After Run()
- How do I receive UDP broadcast packets using GTK / GIO?
- Install Gtk 3.0 problem with depencies in linux
- Ubuntu 22.04 libgtk-3.so: undefined reference to symbol 'gdk_window_hide'
- GTK: "Object with ID not found" error, but the ID is empty
Related Questions in PYGTK
- python, gtk and opengl: render after mouseclick
- How to loop through open Gtk.Windows?
- How to re-draw (refresh, update, replace) container in GTK3?
- Appliction command line int option with value 0 not availible
- Is it possible to use other widget in the tab lable other than Gtk.Label?
- How to change differnt treeviews headers different colors
- How to use a socket as the pty in libvte?
- How to selectively apply different stylesheets in GTK application (python)?
- How to add some index or ID to object or function?
- Apperance settings not staying as set
- show popup window from a thread pygtk make GUI freeze
- PyGObject Scroll to bottom of ScrolledWindow() after adding row to child TreeView
- replacement of get_data and set_data in pygtk3
- PyGTK calculator
- PyGtk with Gtk+3 gives illegal instruction 4
Related Questions in GTK3
- Why does GTK beep when calling `gtk_entry_set_text` (while resizing a window)?
- Django deployment with GTK3
- How to set transparent background for gtk_plug_new window
- Convert Wand image to GTK image
- how do I change the alpha channel along a path in cairo?
- GtkScrolledWindow not aware of scrollable WebKit2.WebView content
- GdkCursor is randomly resetting to default with wglContext and gtk3
- Gstreaming from GTK Python application and sychronously displaying the stream
- Resize window while maintaining aspect ratio
- Rust and GTK Text Editor: Troubleshooting Undo and Redo Operations with Shared Data
- Problems compiling GTK3
- error to convert a gtk2 application with drag and drop to gtk3 (python)
- GTK3: GtkIconView: Is it possible to style the selected cell, which have the cursor focus, differently than other selected cells?
- Sharing variables between closures in GTK Rust
- How do I get VSCode to recognise my GTK installation?
Related Questions in GEDIT
- Why does gedit randomly not maintain/apply preferences?
- How to edit a sqlite3 large text field with paragraphs & newlines?
- Detecting when new document is opened in Gedit plugin
- Get style of text from Gedit plugin
- Unicode arrow characters used in Kali gedit
- Bash script is waiting to open second file in gedit until I close the first one
- I want to record a timestamp in gedit app (open terminator then write "gedit" hit enter)
- Linux gedit plugins "go to definition"
- using groff inside of a flatpak container
- Snippets for Gedit: how to change the text in a placeholder to make the letters uppercase?
- gedit - ENable middle-mouse copy/paste
- open gedit with shell script and then do another process after closing gedit
- install gedit with a specific libboost version
- Custom line break in gedit 3.36.2
- Using awk with gedit external tools
Related Questions in GEDIT-PLUGIN
- Detecting when new document is opened in Gedit plugin
- Get style of text from Gedit plugin
- Unicode arrow characters used in Kali gedit
- Linux gedit plugins "go to definition"
- (MATE) pluma "PLUMA_SELECTED_TEXT" is missing from environment
- How can I create a gedit plugin using python?
- Is it possible to use gedit text editor with Java LibGDX?
- Add Java import statements automatically via script
- How to apply style to all paragraphs with upper case text?
- gedit plugin error - plugin loader 'python3' was not found
- How to save current document of Gedit using external tools?
- How to best configure gedit to work with Django?
- Accel not working in gedit 3 plugin
- Emacs-like line navigation in gedit
- How do I troubleshoot ipython-listener and/or gedit's ipython plugin?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here is a very good tutorial on writing gedit 3 plugins. The example #3 does what you want: connect to a "open new tab" signal and write the document name.
And here you have the complete Gedit API reference.